Part Number Hot Search : 
AWT6201 2SA965 MSK3003 8A2612W EPS13 MB85RC EG1125 DAC8043A
Product Description
Full Text Search
 

To Download 56F801XBLUG Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  56f8000 16-bit digital signal controllers freescale.com 56f8013 data sheet preliminary technical data mc56f8013 rev. 2 4/2005
56f8013 technical data, rev. 2 2 freescale semiconductor preliminary document revision history version history description of change rev 0 initial release rev 1 updates to part 10, specifications, table 10-1 , added maximum clamp current , per pin table 10-12 , clarified variation over temperature table and graph table 10-16 , added lin slave timing rev 2 added alternate pins to figure 11-1 and table 11-1 . please see http://www.freescale.com for the most current data sheet revision.
56f8013 technical data, rev. 2 freescale semiconductor 3 preliminary 56f8013 block diagram program controller and hardware looping unit data alu 16 x 16 + 36 -> 36-bit mac three 16-bit input registers four 36-bit accumulators address generation unit bit manipulation unit 16-bit 56800e core interrupt controller 4 unified data / program ram 4kb pdb pdb xab1 xab2 xdb2 cdbr spi or i 2 c or timer or gpiob ipbus bridge (ipbb) system bus control r/w control memory pab pab cdbw cdbr cdbw jtag/eonce port or gpiod digital reg analog reg low-voltage supervisor v cap v dd v ss_io v dda v ssa 4 reset 7 timer or gpiob ad0 2 3 clock generator* system integration module p o r o s c pwm outputs pwm or timer port or gpioa *includes on-chip relaxation oscillator cop/ watchdog ad1 3 program memory 8k x 16 flash adc or gpioc sci or i 2 c or gpiob 2 2 ? up to 32 mips at 32mhz core frequency ? dsp and mcu functionality in a unified, c-efficient architecture ? 16kb program flash ? 4kb unified data/program ram ? one 6-channel pwm module ? one 6-channel 12-bit adc ? one serial communication interface (sci) with lin slave functionality ? one serial peripheral interface (spi) ? one 16-bit quad timer ? one inter-integrated circuit (i 2 c) port ? computer operating properly (cop)/watchdog ? on-chip relaxation oscillator ? integrated power-on reset and low-voltage interrupt module ? jtag/enhanced on-chip emulation (once?) for unobtrusive, real-time debugging ? up to 26 gpio lines ? 32-pin lqfp package 56f8013 general description
56f8013 technical data, rev. 2 4 freescale semiconductor preliminary part 1: overview . . . . . . . . . . . . . . . . . . . . . . 5 1.1. 56f8013 features . . . . . . . . . . . . . . . . . . . . . 5 1.2. 56f8013 description . . . . . . . . . . . . . . . . . . . 6 1.3. award-winning development environment . . 7 1.4. architecture block diagram . . . . . . . . . . . . . 7 1.5. product documentation . . . . . . . . . . . . . . . . 11 1.6. data sheet conventions. . . . . . . . . . . . . . . 11 part 2: signal/connection descriptions . . . 12 2.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 12 2.2. 56f8013 signal pins . . . . . . . . . . . . . . . . . . 16 part 3: occs . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.1. overview . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.2. features . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 3.3. operating modes . . . . . . . . . . . . . . . . . . . . . 24 3.4. block diagram . . . . . . . . . . . . . . . . . . . . . . 26 3.5. pin descriptions . . . . . . . . . . . . . . . . . . . . . . 27 part 4: memory map . . . . . . . . . . . . . . . . . . . 27 4.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 27 4.2. interrupt vector table . . . . . . . . . . . . . . . . . 27 4.3. program map . . . . . . . . . . . . . . . . . . . . . . . 29 4.4. data map . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 4.5. eonce memory map . . . . . . . . . . . . . . . . . . 31 4.6. peripheral memory mapped registers . . . . 32 part 5: interrupt controller (itcn) . . . . . . . . 42 5.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.2. features . . . . . . . . . . . . . . . . . . . . . . . . . . . 42 5.3. functional description . . . . . . . . . . . . . . . . . 42 5.4. block diagram . . . . . . . . . . . . . . . . . . . . . . . 44 5.5. operating modes . . . . . . . . . . . . . . . . . . . . . 44 5.6. register descriptions . . . . . . . . . . . . . . . . . . 45 5.7. resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61 part 6: system integration module (sim) . . 62 6.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 62 6.2. features . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 6.3. register descriptions . . . . . . . . . . . . . . . . . . 63 6.4. clock generation overview . . . . . . . . . . . . . 76 6.5. power-down modes . . . . . . . . . . . . . . . . . . 77 6.6. resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78 6.7. clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80 6.8. interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . 81 part 7: security features . . . . . . . . . . . . . . .82 7.1. operation with security enabled . . . . . . . . . 82 7.2. flash access lock and unlock mechanisms 82 part 8: general purpose input/output (gpio) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84 8.1. introduction . . . . . . . . . . . . . . . . . . . . . . . . . 84 8.2. configuration . . . . . . . . . . . . . . . . . . . . . . . . 84 8.3. reset values . . . . . . . . . . . . . . . . . . . . . . . . 86 part 9: joint test action group (jtag) . . .91 9.1. 56f8013 information . . . . . . . . . . . . . . . . . . 91 part 10: specifications. . . . . . . . . . . . . . . . . 91 10.1. general characteristics . . . . . . . . . . . . . . . 91 10.2. dc electrical characteristics . . . . . . . . . . . 95 10.3. ac electrical characteristics . . . . . . . . . . . 98 10.4. flash memory characteristics . . . . . . . . . . 98 10.5. external clock operation timing . . . . . . . . 99 10.6. phase locked loop timing . . . . . . . . . . . . 99 10.7. relaxation oscillator timing . . . . . . . . . . 100 10.8. reset, stop, wait, mode select, and interrupt timing . . . . . . . . . . . . . . 101 10.9. serial peripheral interface (spi) timing . 102 10.10. quad timer timing . . . . . . . . . . . . . . . . 105 10.11. serial communication interface (sci) timing . . . . . . . . . . . . . . . . 106 10.12. inter-integrated circuit interface (i2c) timing . . . . . . . . . . . . . . . . 107 10.13. jtag timing . . . . . . . . . . . . . . . . . . . . . 108 10.14. analog-to-digital converter (adc) parameters . . . . . . . . . . . 109 10.15. equivalent circuit for adc inputs . . . . . 111 10.16. power consumption . . . . . . . . . . . . . . . 112 part 11: packaging . . . . . . . . . . . . . . . . . . .114 11.1. 56f8013 package and pin-out information 114 part 12: design considerations . . . . . . . . .117 12.1. thermal design considerations . . . . . . . . 117 12.2. electrical design considerations . . . . . . . 118 part 13: ordering information . . . . . . . . . . 119 part 14: appendix . . . . . . . . . . . . . . . . . . . .120 56f8013 data sheet table of contents
56f8013 features 56f8013 technical data, rev. 2 freescale semiconductor 5 preliminary part 1 overview 1.1 56f8013 features 1.1.1 digital signal controller core ? efficient 16-bit 56800e family digital signal controller (dsc) engine with dual harvard architecture ? as many as 32 million instructions per second (mips) at 32mhz core frequency ? single-cycle 16 16-bit parallel multiplier-accumulator (mac) ? four 36-bit accumulators, including extension bits ? arithmetic and logic multi-bit shifter ? parallel instruction set with unique dsp addressing modes ? hardware do and rep loops ? three internal address buses ? four internal data buses ? instruction set supports both dsp and controller functions ? controller-style addressing modes and instructions for compact code ? efficient c compiler and local variable support ? software subroutine and interrupt stack with depth limited only by memory ? jtag/eonce debug programming interface 1.1.2 memory ? harvard architecture permits as many as three simultaneous accesses to program and data memory ? flash security and protection ? on-chip memory, including a low-cost, high-volume flash solution ? 16kb of program flash ? 4kb of unified data/program ram ? eeprom emulation capability 1.1.3 peripheral circuits for 56f8013 ? one pulse width modulator (pwm) module with six pwm outputs and four fault inputs; fault-tolerant design with dead time insertion; supports both center-aligned and edge-aligned modes ? one six-input, 12-bit, analog-to-digital converter (adc), which support two simultaneous conversions with dual, 3-pin multiplexed inputs; adc and pwm modules can be synchronized through timer channels 2 and 3 ? one 16-bit quad timer module (tmr) totaling four pins: timer works in conjunction with the pwm and adc ? one serial communication interface (sci) with lin slave functionality ? one serial peripheral interface (spi) ? computer operating properly (cop)/watchdog timer
56f8013 technical data, rev. 2 6 freescale semiconductor preliminary ?26 general purpose i/o (gpio) pins ? integrated power-on reset and low-voltage interrupt module ? one inter-integrated circuit (i 2 c) port ? jtag/enhanced on-chip emulation (once) for unobtrusive, processor speed-independent, real-time debugging ? fixed phase lock loop (pll) ? on-chip relaxation oscillator 1.1.4 energy information ? fabricated in high-density cmos with 5v-tolerant, ttl-compatible digital inputs ? on-chip regulators for digital and analog circuitry to lower cost and reduce noise ? wait and stop modes available ? adc smart power management ? each peripheral can be individually disabled to save power 1.2 56f8013 description the 56f8013 is a member of the 56800e core-based family of digital signal controllers (dscs). it combines, on a single chip, the processing power of a dsp and the functionality of a microcontroller with a flexible set of peripherals to create an extrem ely cost-effective solution. because of its low cost, configuration flexibility, and compact program code, the 56f8013 is well-suited for many applications. the 56f8013 includes many peripherals that are especial ly useful for industrial control, motion control, home appliances, general purpose invert ers, smart sensors, fire and secu rity systems, power management, and medical monitoring applications. the 56800e core is based on a harvard-style architect ure consisting of three execution units operating in parallel, allowing as many as six operations per inst ruction cycle. the mcu-style programming model and optimized instruction set allow straightforward gene ration of efficient, compact dsp and control code. the instruction set is also highly efficient for c compilers to enable rapid development of optimized control applications. the 56f8013 supports program execution from internal memories. two data operands can be accessed from the on-chip data ram per instruction cycle. the 56f8013 also offers up to 26 general purpose input/output (gpio) lines, depe nding on peripheral configuration. the 56f8013 digital signal controller includes 16kb of program flash and 4kb of unified data/program ram. program flash memory can be independently bulk erased or erased in pages. program flash page erase size is 512 bytes/256 words. a key application-specific feature of the 56f8013 is the inclusion of one pulse width modulator (pwm) module. this module incorporates three compleme ntary, individually progra mmable pwm signal output pairs and is also capable of supporting six inde pendent pwm functions to enhance motor control functionality. complementary operation permits programmable dead time insertion, and separate top and bottom output polarity control. the up-counter value is programmable to support a continuously variable
award-winning development environment 56f8013 technical data, rev. 2 freescale semiconductor 7 preliminary pwm frequency. edge-aligned and center-aligned synchronous pulse width control (0% to 100% modulation) is supported. the device is capable of controlling most motor types: acim (ac induction motors), both bdc and bldc (brush and brushless dc motors), srm and vrm (switched and variable reluctance motors), and stepper motors. the pwm incorporates fault protection and cycle-by-cycle current limiting with sufficient output drive capability to directly drive standard optoisolators. a ?smoke-inhibit?, write-once protection feature for ke y parameters is also included. a patented pwm waveform distortion correction circuit is also provided. each pwm is double-buffered and includes interrupt controls to permit integral reload rates to be programmable from 1/2 (center-aligned mode only) to 16. the pwm module provides reference outputs to synchronize the analog-to-digital converter (adc) through quad timer, channels 2 and 3. this digital signal controller also provides a full se t of standard programmable peripherals that include one serial communications interface (sci), one serial peripheral interface (spi), one quad timer, and one inter-integrated circuit (i 2 c) interface. any of these interfaces can also be used as general purpose input/outputs (gpios). 1.3 award-winning development environment processor expert tm (pe) provides a rapid application design (rad) tool that combines easy-to-use component-based software application cr eation with an expert knowledge system. the codewarrior integrated development environmen t is a sophisticated tool for code navigation, compiling, and debugging. a complete set of evaluati on modules (evms), demonstration board kit and development system cards will support concurrent engineering. together, pe, codewarrior and evms create a complete, scalable tools solution for easy, fast, and efficient development. 1.4 architecture block diagram the 56f8013?s architecture is shown in figure 1-1 , figure 1-2 , and figure 1-3 . figure 1-1 illustrates how the 56800e system buses communicate with internal memories and the ipbus bridge. table 1-1 lists the internal buses in the 56800e architecture a nd provides a brief descri ption of their function. figure 1-2 and figure 1-3 show the peripherals and control blocks c onnected to the ipbus bridge. the figures do not show the on-board regulator and power and ground si gnals. they also do not show the multiplexing between peripherals or the dedicated gpios. please see part 2 signal/connection descriptions to see which signals are multiplexed with those of other peripherals. 1.4.1 pwm, tmr and adc connections figure 1-3 shows the over/under voltage connections from the adc to the pwm and the connections to the pwm from the tmr and gpio. these signals can control the pwm outputs in a similar manner to the over/under voltage control signals. see the 56f8000 peripheral reference manual for additional information. the pwm_reload_sync output can be connected to th e tmr channel 3 input and the tmr channels 2 and 3 outputs are connected to the adc sync inputs. these are controlled by bits in the sim control register; see section 6.3.1 .
56f8013 technical data, rev. 2 8 freescale semiconductor preliminary figure 1-1 system bus interfaces note: flash memories are encapsulated within the flash interface unit (fiu). flash control is accomplished by the i/o to the fiu over the peripheral bus, while reads and writes are completed between the core and the flash memories. note: the primary data ram port is 32 bits wide. other data ports are 16 bits. 56800e program flash data / program ram ipbus bridge flash interface unit chip tap controller tap linking module 4 primary data read port secondary data read port program reads can be done on secondary port of data memory program writes can be done on primary port of data memory note: all flash reads and writes are routed through the flash interface units, which encapsulate the flash memories. this is not shown for clarity?s sake. jtag / eonce pdb_m[15:0] pab[20:0] xdb2_m[15:0] xab2[23:0] cdbw[31:0] pdb_m[23:0] cdbr_m[31:0] ipbus to flash control logic external jtag port gpio
architecture block diagram 56f8013 technical data, rev. 2 freescale semiconductor 9 preliminary figure 1-2 peripheral subsystem table 1-1 bus signal names name function program memory interface pab[20:0] program memory address bus. data is returned on pdb_m bus. pdb_m[15:0] program data bus for instruction word fetches or read operations. cdbw[15:0] primary core data bus used for program memory writes. (only these 16 bits of the cdbw[31:0] bus are used for writes to program memory.) primary data memory interface bus xab1[23:0] primary data address bus. capable of addressing bytes 1 , words, and long data types. data is written on cdbw and returned on cdbr_m. also used to access memory-mapped i/o. 1. byte accesses can only occur in the bottom half of the memory address space. the most significant bit (msb) of the address will be forced to 0. cdbr_m[31:0] primary core data bus for memory reads. addressed via xab1 bus. cdbw[31:0] primary core data bus for memory writes. addressed via xab1 bus. secondary data memory interface xab2[23:0] secondary data address bus used for the second of two simultaneous accesses. capable of addressing only words. data is returned on xdb2_m. xdb2_m[15:0] secondary data bus used for secondary data address bus xab2 in the dual memory reads. ipbus gpio a interrupt controller to/from ipbus bridge gpio b gpio c clkgen (rosc / pll / clkin) por & lvi sim gpio d low-voltage interrupt system por cop reset reset / gpioa7 cop gpioa n gpiob n gpioc n gpiod n (continues on figure 1-3 ) 8 8 6 4
56f8013 technical data, rev. 2 10 freescale semiconductor preliminary figure 1-3 56f8013 peripheral i/o pin-out to/from ipbus bridge 3 to pwm sync0, sync1 over/under limits adc ana0, 1, 3 ana2 v refh , v refl anb2 anb0, 1, 3 ipbus 3 2 v refh , v refl ana2 anb2 ana0, 1, 3 3 spi i 2 c sci 2 t2o, t3o t3i t2/3 t1 t0 timer pwm pwm0 - 3 fault3 fault0 fault1, 2 pwm4, 5 pwm4, 5 pwm0 - 3 fault1, 2 fault0 fault3 t2, 3 2 3 from adc i 2 c is muxed with both spi amd sci. t2 and t3 are muxed with spi and pwm. t1 t0 clko txd, rxd 2 2 2 2 t2, 3 anb0, 1, 3 gpioa0 - 3 gpioa4 - 5 gpioa6 gpiob5 gpiob4 gpiob6 - 7 gpiob0 - 1 gpiob2 - 3 gpioc0, 1, 3 gpioc2, 6 gpioc4, 5, 7 sda, scl sclk, ss miso, mosi 4 2 2 output controls 2 2 2 (c on ti nue d f rom fi gure 1 - 2 ) reload pulse
product documentation 56f8013 technical data, rev. 2 freescale semiconductor 11 preliminary 1.5 product documentation the documents listed in table 1-2 are required for a complete description and proper design with the 56f8013. documentation is available from local freescal e distributors, freescale semiconductor sales offices, freescale literature distribution centers, or online at: http://www.freescale.com table 1-2 56f8013 chip documentation 1.6 data sheet conventions this data sheet uses the following conventions: topic description order number dsp56800e reference manual detailed description of the 56800e family architecture, 16-bit digital signal controller core processor, and the instruction set dsp56800erm 56f8000 peripheral reference manual detailed description of peripherals of the 56f8000 family of devices mc56f8000rm 56f801x serial bootloader user guide detailed description of the serial bootloader in the 56f801x family of devices 56F801XBLUG 56f8013 technical data sheet electrical and timing specifications, pin descriptions, and package descriptions (this document) mc56f8013 56f8013 product brief summary description and block diagram of the 56f8013 core, memory, peripherals and interfaces mc56f8013pb 56f8013 errata details any chip issues that might be present mc56f8013e overbar this is used to indicate a signal that is active when pulled low. for example, the reset pin is active when low. ?asserted? a high true (active high) signal is high or a low true (active low) signal is low. ?deasserted? a high true (active high) signal is low or a low true (active low) signal is high. examples: signal/symbol logic state signal state voltage 1 1. values for v il , v ol , v ih , and v oh are defined by individual product specifications. pin true asserted v il /v ol pin false deasserted v ih /v oh pin true asserted v ih /v oh pin false deasserted v il /v ol
56f8013 technical data, rev. 2 12 freescale semiconductor preliminary part 2 signal/connection descriptions 2.1 introduction the input and output signals of the 56f8013 are or ganized into functional groups, as detailed in table 2-1 . table 2-2 summarizes all device pins. in table 2-2 , each table row describes the signal or signals present on a pin, sorted by pin number. table 2-1 functional group pin allocations functional group number of pins power (v dd or v dda )2 ground (v ss or v ssa )3 supply capacitors 1 reset 1 pulse width modulator (pwm) ports 1 1. pins in this section can function as tmr and gpio. 7 serial peripheral interface (spi) ports 2 2. pins in this section can function as tmr, i 2 c, and gpio. 4 analog-to-digital converter (adc) ports 6 timer module ports 3 3. pins can function as pwm and gpio. 2 serial communications interface (sci) ports 4 4. pins in this section can function as i 2 c and gpio. 2 jtag/enhanced on-chip emulation (eonce) 4
introduction 56f8013 technical data, rev. 2 freescale semiconductor 13 preliminary table 2-2 56f8013 pins peripherals: lqfp pin # pin name signal name gpio i2c sci spi adc pwm quad timer power & ground jtag misc 1 gpiob6 gpiob6, rxd, sda, clkin b6 sda rxd clkin 2 gpiob1 gpiob1, s s , sda b1 sda ss 3 gpiob7 gpiob7, txd, scl b7 scl txd 4 gpiob5 gpiob5, t1, fault3 b5 fault3 t1 5 anb0 anb0, gpioc4 c4 anb0 6 anb1 anb1, gpioc5 c5 anb1 7 anb2 anb2, v refl , gpioc6 c6 anb2, v refl 8 vdda v dda v dda 9 vssa v ssa v ssa 10 ana2 ana2, v refh , gpioc2 c2 ana2, v refh 11 ana1 ana1, gpioc1 c1 ana1 12 ana0 ana0, gpioc0 c0 ana0 13 vss_io v ss_io v ss_io 14 tck tck, gpiod2 d2 tck 15 reset reset , gpioa7 a7 reset 16 gpiob3 gpiob3, mosi, t3 b3 mosi t3 17 gpiob2 gpiob2, miso, t2 b2 miso t2 18 gpioa6 gpioa6, fault0 a6 fault0 19 gpiob4 gpiob4, t0, clko b4 t0 clko 20 gpioa5 gpioa5, pwm5, fault2, t3 a5 pwm5, fault2 t3 21 gpiob0 gpiob0, sclk, scl b0 scl sclk 22 gpioa4 gpioa4, pwm4, fault1, t2 a4 pwm4, fault1 t2 23 gpioa2 gpioa2, pwm2 a2 pwm2
56f8013 technical data, rev. 2 14 freescale semiconductor preliminary 24 gpioa3 gpioa3, pwm3 a3 pwm3 25 vcap v cap v cap 26 vdd_io v dd_io v dd_io 27 vss_io v ss_io v ss_io 28 gpioa1 gpioa1, pwm1 a1 pwm1 29 gpioa0 gpioa0, pwm0 a0 pwm0 30 tdi tdi, gpiod0 d0 tdi 31 tms tms, gpiod3 d3 tms 32 tdo tdo, gpiod1 d1 tdo table 2-2 56f8013 pins (continued) peripherals: lqfp pin # pin name signal name gpio i2c sci spi adc pwm quad timer power & ground jtag misc
introduction 56f8013 technical data, rev. 2 freescale semiconductor 15 preliminary figure 2-1 56f8013 signals identifi ed by functional group (32-pin lqfp) v dd_io v dda v ssa gpiob6 (rxd, sda, clkin) gpiob7 (txd, scl) other supply ports sci port or i 2 c port or gpio jtag/ eonce port or gpio 1 1 2 v cap 1 1 1 tck (gpiod2) tms (gpiod3) gpioa4 (pwm4, fault1, t2) ana0 - 1 (gpioc0 - 1) 1 1 1 2 1 56f8013 1 tdi (gpiod0) tdo (gpiod1) gpiob0 (sclk, scl) gpiob1 (ss , sda) gpiob2 (miso, t2) gpiob3 (mosi, t3) anb0 - 1 (gpioc4 - 5) anb2 (v refl , gpioc6) 1 1 1 1 1 1 1 2 ana2 (v refh , gpioc2) 1 v ss_io power ground power ground gpioa3 (pwm3) 1 gpioa0 - 2 (pwm0 - 2) 3 gpioa5 (pwm5, fault2, t3) 1 gpioa6 (fault0) 1 reset reset ( gpioa7) 1 gpiob4 (t0, clko) gpiob5 (t1, fault3) timer port or gpio 1 1 adc port or gpio spi port or i 2 c port or timer port or gpio pwm port or timer port or gpio
56f8013 technical data, rev. 2 16 freescale semiconductor preliminary 2.2 56f8013 signal pins after reset, each pin is configured for its primary f unction (listed first). any alternate functionality must be programmed. table 2-3 56f8013 signal and package information for the 32-pin lqfp signal name lqfp pin no. type state during reset signal description v dd_io 26 supply supply i/o power ? this pin supplies 3.3v power to the chip i/o interface. v ss_io 13 supply supply v ss ? these pins provide ground for chip logic and i/o drivers. v ss_io 27 v dda 8 supply supply adc power ? this pin supplies 3.3v power to the adc modules. it must be connected to a clean analog power supply. v ssa 9 supply supply adc analog ground ? this pin supplies an analog ground to the adc modules. v cap 25 supply supply v cap ? connect this pin to a 4.4 f or greater bypass capacitor in order to bypass the core voltage regulator, required for proper chip operation. see section 10.2.1 . gpiob6 (rxd) (sda 1 ) (clkin) 1 input/ output input input/ output input input, pulled high internally port b gpio ? this gpio pin can be individually programmed as an input or output pin. receive data ? sci receive data input. serial data ? this pin serves as the i 2 c serial data line. clock input ? this pin serves as an optional external clock input. after reset, the default state is gpiob6. the peripheral functionality is controlled via the sim (see section 6.3.8 ) and the clkmode bit of the occs oscillator control register. 1. this signal is also brought out on the gpiob1 pin. return to table 2-2
56f8013 signal pins 56f8013 technical data, rev. 2 freescale semiconductor 17 preliminary gpiob7 (txd) (scl 2 ) 3 input/ output input/ output input/ output input, pulled high internally port b gpio ? this gpio pin can be individually programmed as an input or output pin. transmit data ? sci transmit data output or transmit / receive in single wire operation. serial clock ? this pin serves as the i 2 c serial clock. after reset, the default state is gpiob7. the peripheral functionality is controlled via the sim. see section 6.3.8 . 2. this signal is also brought out on the gpiob0 pin. reset (gpioa7) 15 input input/open drain output input, pulled high internally reset ? this input is a direct hardware reset on the processor. when reset is asserted low, the chip is initialized and placed in the reset state. a schmitt trigger input is used for noise immunity. the internal reset signal will be deasserted synchronous with the internal clocks after a fixed number of internal clocks. port a gpio ? this gpio pin can be individually programmed as an input or open drain output pin. note that reset functionality is disabled in this mode and the chip can only be reset via por, cop reset, or software reset. after reset, the default state is reset . gpiob4 (t0) (clko) 19 input/ output input/ output output input, pulled high internally port b gpio ? this gpio pin can be individually programmed as an input or output pin. t0 ? timer, channel 0 clock output ? this is a buffered clock signal. using the sim_clko select register (sim_clkosr), this pin can be programmed as any of the following: disabled (logic 0), clk_mstr (system clock), ipbus clock, or oscillator output. see section 6.3.7 . after reset, the default state is gpiob4. the peripheral functionality is controlled via the sim. see section 6.3.8 . return to table 2-2 table 2-3 56f8013 signal and package information for the 32-pin lqfp (continued) signal name lqfp pin no. type state during reset signal description
56f8013 technical data, rev. 2 18 freescale semiconductor preliminary gpiob5 (t1) (fault3) 4 input/ output input/ output output input, pulled high internally port b gpio ? this gpio pin can be individually programmed as an input or output pin. t1 ? timer, channel 1 fault3 ? this fault input pin is used for disabling selected pwm outputs in cases where fault conditions originate off-chip. after reset, the default state is gpiob5. the peripheral functionality is controlled via the sim. see section 6.3.8 . tck (gpiod2) 14 input input/ output input, pulled high internally test clock input ? this input pin provides a gated clock to synchronize the test logic and shift serial data to the jtag/eonce port. the pin is connected internally to a pull-up resistor. a schmitt trigger input is used for noise immunity. port d gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is tck. tms (gpiod3) 31 input input/ output input, pulled high internally test mode select input ? this input pin is used to sequence the jtag tap controller?s state machine. it is sampled on the rising edge of tck and has an on-chip pull-up resistor. port d gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is tms. tdi (gpiod0) 30 input input/ output input, pulled high internally test data input ? this input pin provides a serial input data stream to the jtag/eonce port. it is sampled on the rising edge of tck and has an on-chip pull-up resistor. port d gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is tdi. return to table 2-2 table 2-3 56f8013 signal and package information for the 32-pin lqfp (continued) signal name lqfp pin no. type state during reset signal description
56f8013 signal pins 56f8013 technical data, rev. 2 freescale semiconductor 19 preliminary tdo (gpiod1) 32 output input/ output tri-stated, pulled high internally test data output ? this tri-stateable output pin provides a serial output data stream from the jtag/eonce port. it is driven in the shift-ir and shift-dr controller states, and changes on the falling edge of tck. port d gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is tdo. gpiob0 (sclk) (scl 3 ) 21 input/ output input/ output input/ output input, pulled high internally port b gpio ? this gpio pin can be individually programmed as an input or output pin. spi serial clock ? in the master mode, this pin serves as an output, clocking slaved listeners. in slave mode, this pin serves as the data clock input. a schmitt trigger input is used for noise immunity. serial data ? this pin serves as the i 2 c serial clock. after reset, the default state is gpiob0. the peripheral functionality is controlled via the sim. see section 6.3.8 . 3. this signal is also brought out on the gpiob7 pin. gpiob1 (ss ) (sda 4 ) 2 input/ output input input/ output input, pulled high internally port b gpio ? this gpio pin can be individually programmed as an input or output pin. spi slave select ? ss is used in slave mode to indicate to the spi module that the current transfer is to be received. serial clock ? this pin serves as the i 2 c serial data line. after reset, the default state is gpiob1. the peripheral functionality is controlled via the sim. see section 6.3.8 . 4. this signal is also brought out on the gpiob6 pin. return to table 2-2 table 2-3 56f8013 signal and package information for the 32-pin lqfp (continued) signal name lqfp pin no. type state during reset signal description
56f8013 technical data, rev. 2 20 freescale semiconductor preliminary gpiob2 (miso) (t2 5 ) 17 input/ output input/ output input/ output input, pulled high internally port b gpio ? this gpio pin can be individually programmed as an input or output pin. spi master in/slave out ? this serial data pin is an input to a master device and an output from a slave device. the miso line of a slave device is placed in the high-impedance state if the slave device is not selected. the slave device places data on the miso line a half-cycle before the clock edge the master device uses to latch the data. t2 ? timer, channel 2 after reset, the default state is gpiob2. the peripheral functionality is controlled via the sim. see section 6.3.8 . 5. this signal is also brought out on the gpioa4 pin. gpiob3 (mosi) (t3 6 ) 16 input/ output input/ output input/ output input, pulled high internally port b gpio ? this gpio pin can be individually programmed as an input or output pin. spi master out/slave in ? this serial data pin is an output from a master device and an input to a slave device. the master device places data on the mosi line a half-cycle before the clock edge the slave device uses to latch the data. t3 ? timer, channel 3 after reset, the default state is gpiob3. the peripheral functionality is controlled via the sim. see section 6.3.8 . 6. this signal is also brought out on the gpioa5 pin. gpioa0 (pwm0) 29 input/ output output input, pulled high internally port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm0 ? this is one of the six pwm output pins. after reset, the default state is gpioa0. return to table 2-2 table 2-3 56f8013 signal and package information for the 32-pin lqfp (continued) signal name lqfp pin no. type state during reset signal description
56f8013 signal pins 56f8013 technical data, rev. 2 freescale semiconductor 21 preliminary gpioa1 (pwm1) 28 input/ output output input, pulled high internally port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm1 ? this is one of the six pwm output pins. after reset, the default state is gpioa1. gpioa2 (pwm2) 23 input/ output output input, pulled high internally port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm2 ? this is one of the six pwm output pins. after reset, the default state is gpioa2. gpioa3 (pwm3) 24 input/ output output input, pulled high internally port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm3 ? this is one of the six pwm output pins. after reset, the default state is gpioa3. gpioa4 (pwm4) (fault1) (t2 7 ) 22 input/ output output input input/ output input, pulled high internally port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm4 ? this is one of the six pwm output pins. fault1 ? this fault input pin is used for disabling selected pwm outputs in cases where fault conditions originate off-chip. t2 ? timer, channel 2 after reset, the default state is gpioa4. the peripheral functionality is controlled via the sim. see section 6.3.8 . 7. this signal is also brought out on the gpiob2 pin. return to table 2-2 table 2-3 56f8013 signal and package information for the 32-pin lqfp (continued) signal name lqfp pin no. type state during reset signal description
56f8013 technical data, rev. 2 22 freescale semiconductor preliminary gpioa5 (pwm5) (fault2) (t3 8 ) 20 input/ output output input/ output input/ output input, pulled high internally port a gpio ? this gpio pin can be individually programmed as an input or output pin. pwm5 ? this is one of the six pwm output pins. fault2 ? this fault input pin is used for disabling selected pwm outputs in cases where fault conditions originate off-chip. t3 ? timer, channel 3 after reset, the default state is gpioa5. the peripheral functionality is controlled via the sim. see section 6.3.8 . 8. this signal is also brought out on the gpiob3 pin. gpioa6 (fault0) 18 input/ output input input, pulled high internally port a gpio ? this gpio pin can be individually programmed as an input or output pin. fault0 ? this fault input pin is used for disabling selected pwm outputs in cases where fault conditions originate off-chip. after reset, the default state is gpioa6. ana0 (gpioc0) 12 input input/ output analog input ana0 ? analog input to adc a, channel 0 port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is ana0. ana1 (gpioc1) 11 input input/ output analog input ana1 ? analog input to adc a, channel 1 port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is ana1. return to table 2-2 table 2-3 56f8013 signal and package information for the 32-pin lqfp (continued) signal name lqfp pin no. type state during reset signal description
56f8013 signal pins 56f8013 technical data, rev. 2 freescale semiconductor 23 preliminary ana2 (v refh ) (gpioc2) 10 input input input/ output analog input ana2 ? analog input to adc a, channel 2 v refh ? analog reference voltage high port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is ana2. anb0 (gpioc4) 5 input input/ output analog input anb0 ? analog input to adc b, channel 0 port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is anb0. anb1 (gpioc5) 6 input input/ output analog input anb1 ? analog input to adc b, channel 1 port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is anb1. anb2 (v refl ) (gpioc6) 7 input input input/ output analog input anb2 ? analog input to adc b, channel 2 v refl ? analog reference voltage low. this should normally be connected to a low-noise v ss . port c gpio ? this gpio pin can be individually programmed as an input or output pin. after reset, the default state is anb2. return to table 2-2 table 2-3 56f8013 signal and package information for the 32-pin lqfp (continued) signal name lqfp pin no. type state during reset signal description
56f8013 technical data, rev. 2 24 freescale semiconductor preliminary part 3 occs 3.1 overview this module provides the 2x system clock frequency to the system integrati on module (sim), which uses it to generate the various chip clocks. this m odule also produces the osc_clk signals plus the adc clock and high-speed peripheral clock. the on-chip clock synthesis module allows product desi gn using an internal relaxation oscillator to run 56f8000 family parts at user-selec table frequencies up to 32mhz. 3.2 features the on-chip clock synthesis (occs) module interf aces to the oscillator and pll. the occs module features: ? internal relaxation oscillator ? ability to power down the internal relaxation oscillator ? ability to put the internal relaxation oscillator into a standby mode ? 3-bit postscaler provides control for the pll output ? ability to power down the internal pll ? provides 2x master clock frequency and osc_clk signals ? provides 3x fast peripheral clock to pwm and timer ? safety shutdown feature is available in the event that the pll reference clock disappears ? can be driven from an external clock source the clock generation module provides the programming interface for both the pll and internal relaxation oscillator. 3.3 operating modes in 56f8000 family parts, either an inte rnal oscillator or an external frequency source can be used to provide a reference clock (sys_clk2) to the sim. the 2x system clock source output from the occs ca n be described by one of the following equations: 2x system frequency = oscillator frequency 2x system frequency = (oscillator frequency x 8) / (postscaler) where: postscaler = 1, 2, 4, 8, 16, or 32 pll output divider the sim is responsible for further dividing these fre quencies by two, which will insure a 50% duty cycle in the system clock output.
operating modes 56f8013 technical data, rev. 2 freescale semiconductor 25 preliminary the 56f8000 family parts? on-chip clock synt hesis module has the following registers: ? control register (occs_cr) ? divide-by register (occs_db) ? status register (occs_sr) ? shutdown register (occs_shutdn) ? oscillator control register (occs_octrl) for more information on these registers, please refer to the 56f8000 peripheral reference manual. 3.3.1 external clock source the recommended method of connecting an external clock is illustrated in figure 3-1 . the external clock source is connected to gpiob6 / rxd. figure 3-1 connecting an external clock signal using gpiob6 / rxd 56f8013 gpiob6 / rxd external clock
56f8013 technical data, rev. 2 26 freescale semiconductor preliminary 3.4 block diagram figure 3-2 provides a block diagram which shows how the 56f8013 creates its internal clock, using the relaxation oscillator as an 8mhz clock reference for the pll. figure 3-2 occs block diagram with relaxation oscillator trim[9:0] rosb ropd relaxation osc bus interface and control bus interface gpiob6 / rxd precs mux mux mux mstr_osc sys_clk_x2 source to the sim (64mhz max) zsrc hs perf clk (96mhz max) postscaler ( 1, 2, 4, 8, 16, 32) postscaler ( 1, 2, 4, 8, 16, 32) 3 2 pll x 24 lock detector loss of reference clock detector loss of reference clock interrupt lck f out /2 feedback pllcod fout
pin descriptions 56f8013 technical data, rev. 2 freescale semiconductor 27 preliminary 3.5 pin descriptions 3.5.1 external reference (gpiob6 / rxd) the relaxation oscillator is included on chip and the re set mode is to use this as the clock source for the chip. the user then has the option of switching to an external clock reference if desired. part 4 memory map 4.1 introduction the 56f8013 device is a 16-bit motor-control chip ba sed on the 56800e core. it uses a harvard-style architecture with two independent memory spaces for data and program. on-chip ram is used in both spaces and flash memory is used only in program space. this section provides memory maps for: ? program address space, including the interrupt vector table ? data address space, including the eonce memory and peripheral memory maps on-chip memory sizes for the device are summarized in table 4-1 . flash memories? restrictions are identified in the ?use restrictions? column of table 4-1 . 4.2 interrupt vector table table 4-2 provides the 56f8013?s reset and inte rrupt priority structure, including on-chip peripherals. the table is organized with higher-priority vectors at th e top and lower-priority interrupts lower in the table. as indicated, the priority of an interrupt can be assigned to different levels, allowing some control over interrupt priorities. all level 3 inte rrupts will be serviced before level 2, and so on. for a selected priority level, the lowest vector number has the highest priority. the location of the vector table is determined by the vector base address (vba). please see section 5.6.11 for the reset value of the vba. by default, vba = 0, and the reset address and cop re set address will correspond to vector 0 and 1 of the interrupt vector table. in these instances, the first tw o locations in the vector table must contain branch or jmp instructions. all other entries must contain jsr instructions. table 4-1 chip memory configurations on-chip memory 56f8013 use restrictions program flash (pflash) 8k x 16 erase / program via flash interface unit and word writes to cdbw unified ram (ram) 2k x 16 usable by both the program and data memory spaces
56f8013 technical data, rev. 2 28 freescale semiconductor preliminary table 4-2 interrupt vector table contents 1 peripheral vector number priority level vector base address + interrupt function core p:$00 reserved for reset overlay 2 core p:$02 reserved for cop reset overlay core 2 3 p:$04 illegal instruction core 3 3 p:$06 sw interrupt 3 core 4 3 p:$08 hw stack overflow core 5 3 p:$0a misaligned long word access core 6 1-3 p:$0c eonce step counter core 7 1-3 p:$0e eonce breakpoint unit 0 core 8 1-3 p:$10 eonce trace buffer core 9 1-3 p:$12 eonce transmit register empty core 10 1-3 p:$14 eonce receive register full core 11 2 p:$16 sw interrupt 2 core 12 1 p:$18 sw interrupt 1 core 13 0 p:$1a sw interrupt 0 14 reserved 15 reserved ps 16 0-2 p:$20 power sense occs 17 0-2 p:$22 pll lock, loss of clock reference interrupt fm 18 0-2 p:$24 fm access error interrupt fm 19 0-2 p:$26 fm command complete fm 20 0-2 p:$28 fm command, data and address buffers empty 21 reserved gpiod 22 0-2 p:$2c gpiod gpioc 23 0-2 p:$2e gpioc gpiob 24 0-2 p:$30 gpiob gpioa 25 0-2 p:$32 gpioa spi 26 0-2 p:$34 spi receiver full / error spi 27 0-2 p:$36 spi transmitter empty sci 28 0-2 p:$38 sci transmitter empty sci 29 0-2 p:$3a sci transmitter idle sci 30 0-2 p:$3c sci reserved sci 31 0-2 p:$3e sci receiver error sci 32 0-2 p:$40 sci receiver full 33, 34 reserved i 2 c 35 0-2 p:$46 i 2 c timer 36 0-2 p:$48 timer channel 0 timer 37 0-2 p:$4a timer channel 1 (continues next page)
program map 56f8013 technical data, rev. 2 freescale semiconductor 29 preliminary 4.3 program map the program memory map is shown in table 4-3 . timer 38 0-2 p:$4c timer channel 2 timer 39 0-2 p:$4e timer channel 3 adc 40 0-2 p:$50 adca conversion complete adc 41 0-2 p:$52 adcb conversion complete adc 42 0-2 p:$54 adc zero crossing or limit error pwm 43 0-2 p:$56 reload pwm pwm 44 0-2 p:$58 pwm fault swilp 45 -1 p:$5a sw interrupt low priority 1. two words are allocated for each entry in the vector table. this does not allow the full address range to be referenced from the vector table, providing only 19 bits of address. 2. if the vba is set to $0000, the first two locations of the vector table will overlay the chip reset addresses. table 4-3 program memory map 1 1. all addresses are 16-bit word addresses. begin/end address memory allocation p: $ff ffff p: $00 8800 reserved p: $00 87ff p: $00 8000 on-chip ram 2 4kb 2. this ram is shared with data space starting at address x: $00 0000; see figure 4-1 . p: $00 7fff p: $00 2000 reserved p: $00 1fff p: $00 0000 internal program flash 16kb cop reset address = $00 0002 boot location = $00 0000 table 4-2 interrupt vector table contents 1 (continued) peripheral vector number priority level vector base address + interrupt function
56f8013 technical data, rev. 2 30 freescale semiconductor preliminary 4.4 data map figure 4-1 dual port ram table 4-4 data memory map 1 1. all addresses are 16-bit word addresses. begin/end address memory allocation x:$ff ffff x:$ff ff00 eonce 256 locations allocated x:$ff feff x:$01 0000 reserved x:$00 ffff x:$00 f000 on-chip peripherals 4096 locations allocated x:$00 efff x:$00 8800 reserved x:$00 efff x:$00 0800 reserved x:$00 7fff x:$00 0040 reserved x:$00 07ff x:$00 0000 on-chip data ram 2 4kb 2. this ram is shared with program space starting at p: $00 8000; see figure 4-1 . reserved ram reserved flash reserved eonce peripherals reserved ram dual port ram program data
eonce memory map 56f8013 technical data, rev. 2 freescale semiconductor 31 preliminary 4.5 eonce memory map figure 4-5 lists all eonce registers necessary to access or control the eonce. table 4-5 eonce memory map address register acronym register name x:$ff ffff otx1 / orx1 transmit register upper word receive register upper word x:$ff fffe otx / orx (32 bits) transmit register receive register x:$ff fffd otxrxsr transmit and receive status and control register x:$ff fffc oclsr core lock / unlock status register x:$ff fffb - x:$ff ffa1 reserved x:$ff ffa0 ocr control register x:$ff ff9f instruction step counter x:$ff ff9e oscntr (24 bits) instruction step counter x:$ff ff9d osr status register x:$ff ff9c obase peripheral base address register x:$ff ff9b otbcr trace buffer control register x:$ff ff9a otbpr trace buffer pointer register x:$ff ff99 trace buffer register stages x:$ff ff98 otb (21 - 24 bits/stage) trace buffer register stages x:$ff ff97 breakpoint unit control register x:$ff ff96 obcr (24 bits) breakpoint unit control register x:$ff ff95 breakpoint unit address register 1 x:$ff ff94 obar1 (24 bits) breakpoint unit address register 1 x:$ff ff93 breakpoint unit address register 2 x:$ff ff92 obar2 (32 bits) breakpoint unit address register 2 x:$ff ff91 breakpoint unit mask register 2 x:$ff ff90 obmsk (32 bits) breakpoint unit mask register 2 x:$ff ff8f reserved x:$ff ff8e obcntr eonce breakpoint unit counter x:$ff ff8d reserved x:$ff ff8c reserved x:$ff ff8b reserved x:$ff ff8a oescr external signal control register x:$ff ff89 - x:$ff ff00 reserved
56f8013 technical data, rev. 2 32 freescale semiconductor preliminary 4.6 peripheral memory mapped registers on-chip peripheral registers are part of the data memory map on the 56800e series. these locations may be accessed with the same addressing modes used for ordinary data memory, except all peripheral registers should be read/written using word accesses only. table 4-6 summarizes base addresses for the set of peripherals on the 56f8013 device. peripherals are listed in order of the base address. the following tables list all of the peripheral registers require d to control or access the peripherals. table 4-6 data memory peripheral base address map summary peripheral prefix base address table number timer tmr n x:$00 f000 4-7 pwm pwm x:$00 f040 4-8 itcn itcn x:$00 f060 4-9 adc adc x:$00 f080 4-10 sci sci x:$00 f0b0 4-11 spi spi x:$00 f0c0 4-12 i 2 c i2c x:$00 f0d0 4-13 cop cop x:$00 f0e0 4-14 clk, pll, osc, test occs x:$00 f0f0 4-15 gpio port a gpioa x:$00 f100 4-16 gpio port b gpiob x:$00 f110 4-17 gpio port c gpioc x:$00 f120 4-18 gpio port d gpiod x:$00 f130 4-19 sim sim x:$00 f140 4-20 power supervisor ps x:$00 f160 4-21 fm fm x:$00 f400 4-22
peripheral memory mapped registers 56f8013 technical data, rev. 2 freescale semiconductor 33 preliminary table 4-7 quad timer registers address map (tmr_base = $00 f000) register acronym address offset register description tmr0_comp1 $0 compare register 1 tmr0_comp2 $1 compare register 2 tmr0_capt $2 capture register tmr0_load $3 load register tmr0_hold $4 hold register tmr0_cntr $5 counter register tmr0_ctrl $6 control register tmr0_sctrl $7 status and control register tmr0_cmpld1 $8 comparator load register 1 tmr0_cmpld2 $9 comparator load register 2 tmr0_csctrl $a comparator status and control register reserved tmr1_comp1 $10 compare register 1 tmr1_comp2 $11 compare register 2 tmr1_capt $12 capture register tmr1_load $13 load register tmr1_hold $14 hold register tmr1_cntr $15 counter register tmr1_ctrl $16 control register tmr1_sctrl $17 status and control register tmr1_cmpld1 $18 comparator load register 1 tmr1_cmpld2 $19 comparator load register 2 tmr1_csctrl $1a comparator status and control register reserved tmr2_comp1 $20 compare register 1 tmr2_comp2 $21 compare register 2 tmr2_capt $22 capture register tmr2_load $23 load register tmr2_hold $24 hold register tmr2_cntr $25 counter register tmr2_ctrl $26 control register tmr2_sctrl $27 status and control register tmr2_cmpld1 $28 comparator load register 1 tmr2_cmpld2 $29 comparator load register 2 tmr2_csctrl $2a comparator status and control register
56f8013 technical data, rev. 2 34 freescale semiconductor preliminary reserved tmr3_comp1 $30 compare register 1 tmr3_comp2 $31 compare register 2 tmr3_capt $32 capture register tmr3_load $33 load register tmr3_hold $34 hold register tmr3_cntr $35 counter register tmr3_ctrl $36 control register tmr3_sctrl $37 status and control register tmr3_cmpld1 $38 comparator load register 1 tmr3_cmpld2 $39 comparator load register 2 tmr3_csctrl $3a comparator status and control register table 4-8 pulse width modulator registers address map (pwm_base = $00 f040) register acronym address offset register description pwm_ctrl $0 control register pwm_fctrl $1 fault control register pwm_fltack $2 fault status acknowledge register pwm_out $3 output control register pwm_cntr $4 counter register pwm_cmod $5 counter modulo register pwm_val0 $6 value register 0 pwm_val1 $7 value register 1 pwm_val2 $8 value register 2 pwm_val3 $9 value register 3 pwm_val4 $a value register 4 pwm_val5 $b value register 5 pwm_dtim0 $c dead time register 0 pwm_dtim1 $d dead time register 1 pwm_dmap1 $e disable mapping register 1 pwm_dmap2 $f disable mapping register 2 pwm_cnfg $10 configure register pwm_cctrl $11 channel control register pwm_port $12 port register pwm_icctrl $13 internal correction control register pwm_sctrl $14 source control register table 4-7 quad timer registers address map (tmr_base = $00 f000) (continued) register acronym address offset register description
peripheral memory mapped registers 56f8013 technical data, rev. 2 freescale semiconductor 35 preliminary table 4-9 interrupt control registers address map (itcn_base = $00 f060) register acronym address offset register description itcn_ipr0 $0 interrupt priority register 0 itcn_ipr1 $1 interrupt priority register 1 itcn_ipr2 $2 interrupt priority register 2 itcn_ipr3 $3 interrupt priority register 3 itcn_ipr4 $4 interrupt priority register 4 itcn_vba $5 vector base address register itcn_fim0 $6 fast interrupt match 0 register itcn_fival0 $7 fast interrupt vector address low 0 register itcn_fivah0 $8 fast interrupt vector address high 0 register itcn_fim1 $9 fast interrupt match 1 register itcn_fival1 $a fast interrupt vector address low 1 register itcn_fivah1 $b fast interrupt vector address high 1 register itcn_irqp0 $c irq pending register 0 itcn_irqp1 $d irq pending register 1 itcn_irqp2 $e irq pending register 2 reserved itcn_ictrl $12 interrupt control register reserved table 4-10 analog-to-digital co nverter registers address map (adc_base = $00 f080) register acronym address offset register description adc_ctrl1 $0 control register 1 adc_ctrl2 $1 control register 2 adc_zxctrl $2 zero crossing control register adc_clist 1 $3 channel list register 1 adc_clist 2 $4 channel list register 2 adc_sdis $5 sample disable register adc_stat $6 status register adc_limstat $7 limit status register adc_zxstat $8 zero crossing status register adc_rslt0 $9 result register 0 adc_rslt1 $a result register 1 adc_rslt2 $b result register 2
56f8013 technical data, rev. 2 36 freescale semiconductor preliminary adc_rslt3 $c result register 3 adc_rslt4 $d result register 4 adc_rslt5 $e result register 5 adc_rslt6 $f result register 6 adc_rslt7 $10 result register 7 adc_lolim0 $11 low limit register 0 adc_lolim1 $12 low limit register 1 adc_lolim2 $13 low limit register 2 adc_lolim3 $14 low limit register 3 adc_lolim4 $15 low limit register 4 adc_lolim5 $16 low limit register 5 adc_lolim6 $17 low limit register 6 adc_lolim7 $18 low limit register 7 adc_hilim0 $19 high limit register 0 adc_hilim1 $1a high limit register 1 adc_hilim2 $1b high limit register 2 adc_hilim3 $1c high limit register 3 adc_hilim4 $1d high limit register 4 adc_hilim5 $1e high limit register 5 adc_hilim6 $1f high limit register 6 adc_hilim7 $20 high limit register 7 adc_offst0 $21 offset register 0 adc_offst1 $22 offset register 1 adc_offst2 $23 offset register 2 adc_offst3 $24 offset register 3 adc_offst4 $25 offset register 4 adc_offst5 $26 offset register 5 adc_offst6 $27 offset register 6 adc_offst7 $28 offset register 7 adc_pwr $29 power control register adc_vref $2a voltage reference register reserved table 4-10 analog-to-digital co nverter registers address map (adc_base = $00 f080) (continued) register acronym address offset register description
peripheral memory mapped registers 56f8013 technical data, rev. 2 freescale semiconductor 37 preliminary table 4-11 serial communication interface registers address map (sci_base = $00 f0b0) register acronym address offset register description sci_rate $0 baud rate register sci_ctrl1 $1 control register 1 sci_ctrl2 $2 control register 2 sci_stat $3 status register sci_data $4 data register table 4-12 serial peripheral interface registers address map (spi_base = $00 f0c0) register acronym address offset register description spi_sctrl $0 status and control register spi_dsctrl $1 data size and controlregister spi_drcv $2 data receive register spi_dxmit $3 data transmit register table 4-13 i 2 c registers address map (i2c_base = $00 f0d0) register acronym address offset register description i2c_addr $0 address register i2c_fdiv $1 frequency divider register i2c_ctrl $2 control register i2c_stat $3 status register i2c_data $4 data i/o register i2c_nfilt $5 noise filter register table 4-14 computer operating properly registers address map (cop_base = $00 f0e0) register acronym address offset register description cop_ctrl $0 control register cop_tout $1 time-out register cop_cntr $2 counter register
56f8013 technical data, rev. 2 38 freescale semiconductor preliminary table 4-15 clock generation m odule registers address map (occs_base = $00 f0f0) register acronym address offset register description occs_ctrl $0 control register occs_divby $1 divide-by register occs_stat $2 status register reserved occs_shutdn $4 shutdown register occs_octrl $5 oscillator control register table 4-16 gpioa registers address map (gpioa_base = $00 f100) register acronym address offset register description gpioa_pupen $0 pull-up enable register gpioa_data $1 data register gpioa_ddir $2 data direction register gpioa_peren $3 peripheral enable register gpioa_iassrt $4 interrupt assert register gpioa_ien $5 interrupt enable register gpioa_iepol $6 interrupt edge polarity register gpioa_ipend $7 interrupt pending register gpioa_iedge $8 interrupt edge-sensitive register gpioa_ppoutm $9 push-pull output mode control register gpioa_rdata $a raw data register gpioa_drive $b drive strength control register
peripheral memory mapped registers 56f8013 technical data, rev. 2 freescale semiconductor 39 preliminary table 4-17 gpiob registers address map (gpiob_base = $00 f110) register acronym address offset register description gpiob_pupen $0 pull-up enable register gpiob_data $1 data register gpiob_ddir $2 data direction register gpiob_peren $3 peripheral enable register gpiob_iassrt $4 interrupt assert register gpiob_ien $5 interrupt enable register gpiob_iepol $6 interrupt edge polarity register gpiob_ipend $7 interrupt pending register gpiob_iedge $8 interrupt edge-sensitive register gpiob_ppoutm $9 push-pull output mode control register gpiob_rdata $a raw data register gpiob_drive $b drive strength control register table 4-18 gpioc registers address map (gpioc_base = $00 f120) register acronym address offset register description gpioc_pupen $0 pull-up enable register gpioc_data $1 data register gpioc_ddir $2 data direction register gpioc_peren $3 peripheral enable register gpioc_iassrt $4 interrupt assert register gpioc_ien $5 interrupt enable register gpioc_iepol $6 interrupt edge polarity register gpioc_ipend $7 interrupt pending register gpioc_iedge $8 interrupt edge-sensitive register gpioc_ppoutm $9 push-pull output mode control register gpioc_rdata $a raw data register gpioc_drive $b drive strength control register
56f8013 technical data, rev. 2 40 freescale semiconductor preliminary table 4-19 gpiod registers address map (gpiod_base = $00 f130) register acronym address offset register description gpiod_pupen $0 pull-up enable register gpiod_data $1 data register gpiod_ddir $2 data direction register gpiod_peren $3 peripheral enable register gpiod_iassrt $4 interrupt assert register gpiod_ien $5 interrupt enable register gpiod_iepol $6 interrupt edge polarity register gpiod_ipend $7 interrupt pending register gpiod_iedge $8 interrupt edge-sensitive register gpiod_ppoutm $9 push-pull output mode control register gpiod_rdata $a raw data register gpiod_drive $b drive strength control register table 4-20 system integration module registers address map (sim_base = $00 f140) register acronym address offset register description sim_ctrl $0 control register sim_rstat $1 reset status register sim_swc0 $2 software control register 0 sim_swc1 $3 software control register 1 sim_swc2 $4 software control register 2 sim_swc3 $5 software control register 3 sim_mshid $6 most significant half jtag id sim_lshid $7 least significant half jtag id sim_pwr $8 power control register reserved sim_clkout $a clock out select register sim_gps $b gpio peripheral select register sim_pce $c peripheral clock enable register sim_iosahi $d i/o short address location high register sim_iosalo $e i/o short address location low register
peripheral memory mapped registers 56f8013 technical data, rev. 2 freescale semiconductor 41 preliminary table 4-21 power supervisor registers address map (ps_base = $00 f160) register acronym address offset register description ps_ctrl $0 control register ps_stat $1 status register table 4-22 flash module registers address map (fm_base = $00 f400) register acronym address offset register description fm_clkdiv $0 clock divider register fm_cnfg $1 configuration register $2 reserved fm_sechi $3 security high half register fm_seclo $4 security low half register $5 - $9 reserved fm_prot $10 protection register $11 - $12 reserved fm_ustat $13 user status register fm_cmd $14 command register $15 reserved $16 reserved $17 reserved fm_data $18 data buffer register $19 reserved $1a reserved fm_opt1 $1b optional data 1 register reserved fm_tstsig $1d test array signature register
56f8013 technical data, rev. 2 42 freescale semiconductor preliminary part 5 interrupt controller (itcn) 5.1 introduction the interrupt controller (itcn) module is used to arbitrate between various interrupt requests (irqs), to signal to the 56800e core when an interrupt of sufficient priority exists, and to what address to jump in order to service this interrupt. 5.2 features the itcn module design includes these distinctive features: ? programmable priority levels for each irq ? two programmable fast interrupts ? notification to sim module to restart clocks out of wait and stop modes ? ability to drive initial address on the address bus after reset for further information, see table 4-2 , interrupt vector table contents. 5.3 functional description the interrupt controller is a slave on the ipbus. it contains registers that allow each of the 46 interrupt sources to be set to one of four prio rity levels (excluding certain interrupt s that are of fixed priority). next, all of the interrupt requests of a given level are prio rity encoded to determine the lowest numerical value of the active interrupt requests for that level. within a given priority level, numbe r 0 is the highest priority and number 45 is the lowest. 5.3.1 normal interrupt handling once the intc has determined that an interrupt is to be serviced and which interrupt has the highest priority, an interrupt vector addre ss is generated. normal interrupt ha ndling concatenates the vector base address (vba) and the vector number to determine the v ector address, generating an offset into the vector table for each interrupt.
functional description 56f8013 technical data, rev. 2 freescale semiconductor 43 preliminary 5.3.2 interrupt nesting interrupt exceptions may be nested to allow an irq of higher priority than the current exception to be serviced. the following table defines the nes ting requirements for each priority level. 5.3.3 fast interrupt handling fast interrupts are described in the dsp56800e reference manual . the interrupt controller recognizes fast interrupts before the core does. a fast interrupt is defined (to the itcn) by: 1. setting the priority of the interrupt as level 2, with the appropriate field in the ipr registers 2. setting the fim n register to the appropriate vector number 3. setting the fival n and fivah n registers with the address of the code for the fast interrupt when an interrupt occurs, its vector number is compar ed with the fim0 and fim1 register values. if a match occurs, and it is a level 2 interrupt, the itcn ha ndles it as a fast interrupt. the itcn takes the vector address from the appropriate fivaln and fivahn regist ers, instead of generating an address that is an offset from the vba. the core then fetches the instruction from the indicated vector adddress and if it is not a jsr, the core starts its fast interrupt handling. table 5-1 interrupt mask bit definition sr[9] sr[8] exceptions permitted exceptions masked 0 0 priorities 0, 1, 2, 3 none 0 1 priorities 1, 2, 3 priority 0 1 0 priorities 2, 3 priorities 0, 1 1 1 priority 3 priorities 0, 1, 2
56f8013 technical data, rev. 2 44 freescale semiconductor preliminary 5.4 block diagram figure 5-1 interrupt controller block diagram 5.5 operating modes the itcn module design contains two major modes of operation: ? functional mode the itcn is in this mode by default. ? wait and stop modes during wait and stop modes, the system clocks and the 56800e core are turned off. the itcn will signal a pending irq to the system integration module (sim) to restart the clocks and service the irq. an irq can only wake up the core if the irq is enabled prior to entering the wait or stop mode. priority level 2 -> 4 decode int0 priority level 2 -> 4 decode int45 level 0 46 -> 6 priority encoder any0 level 3 46 -> 6 priority encoder any3 int vab ipic control 6 6 pic_en iack sr[9:8]
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 45 preliminary 5.6 register descriptions a register address is the sum of a base address and an address offset. the base address is defined at the system level and the address offset is defined at the module level. the itcn module has 16 registers. table 5-2 itcn register summary (itcn_base = $00 f060) register acronym base address + register name section location ipr0 $0 interrupt priority register 0 5.6.1 ipr1 $1 interrupt priority register 1 5.6.2 ipr2 $2 interrupt priority register 2 5.6.3 ipr3 $3 interrupt priority register 3 5.6.4 ipr4 $4 interrupt priority register 4 5.6.5 vba $5 vector base address register 5.6.6 fim0 $6 fast interrupt match 0 register 5.6.7 fival0 $7 fast interrupt 0 vector address low register 5.6.8 fivah0 $8 fast interrupt 0 vector address high 0 register 5.6.9 fim1 $9 fast interrupt match 1 register 5.6.10 fival1 $a fast interrupt 1 vector address low register 5.6.11 fivah1 $b fast interrupt 1 vector address high register 5.6.12 irqp0 $c irq pending register 0 5.6.13 irqp1 $d irq pending register 1 5.6.14 irqp2 $e irq pending register 2 5.6.15 reserved ictrl $12 interrupt control register 5.6.16 reserved
56f8013 technical data, rev. 2 46 freescale semiconductor preliminary figure 5-2 itcn register map summary add. offset register name 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 $0 ipr0 r lvi ipl 0 0 0 0 rx_reg ipl tx_reg ipl trbuf ipl bkpt_u ipl stpcnt ipl w $1 ipr1 r gpiob ipl gpioc ipl gpiod ipl 0 0 fm_cbe ipl fm_cc ipl fm_err ipl pll ipl w $2 ipr2 r sci_rcv ipl sci_rerr ipl 0 0 sci_tidl ipl sci_xmit ipl spi_xmit ipl spi_rcv ipl gpioa ipl w $3 ipr3 r adca_cc ipl tmr_3 ipl tmr_2 ipl tmr_1 ipl tmr_0 ipl i2c_addr ipl 0 0 0 0 w $4 ipr4 r 0 0 0 0 0 0 0 0 pwm_f ipl pwm_rl ipl adc_zc_le ipl adcb_cc ipl w $5 vba r 0 0 vector_base_address w $6 fim0 r 0 0 0 0 0 0 0 0 0 0 fast interrupt 0 w $7 fival0 r fast interrupt 0 vector address low w $8 fivah0 r 0 0 0 0 0 0 0 0 0 0 0 fast interrupt 0 vector address high w $9 fim1 r 0 0 0 0 0 0 0 0 0 0 fast interrupt 1 w $a fival1 r fast interrupt 1 vector address low w $b fivah1 r 0 0 0 0 0 0 0 0 0 0 0 fast interrupt 1 vector address high w $c irqp0 r pending[16:2] 1 w $d irqp1 r pending[32:17] w $e irqp2 r 1 1 1 pending[45:33] w reserved $12 ictrl r int ipic vab int_ dis 1 1 1 0 0 w reserved = reserved
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 47 preliminary 5.6.1 interrupt priority register 0 (ipr0) figure 5-3 interrupt priority register 0 (ipr0) 5.6.1.1 lvi ipl?bits 15?14 this field is used to set the interrupt priority levels for a peripheral irq. this irq is limited to priorities 0 through 2 and is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.1.2 reserved?bits 13?10 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.1.3 eonce receive register full interrupt priority level (rx_reg ipl)? bits 9?8 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 5.6.1.4 eonce transmit register empty interrupt priority level (tx_reg ipl)? bits 7?6 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 base + $0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read lvi ipl 0 0 0 0 rx_reg ipl tx_reg ipl trbuf ipl bkpt_u ipl stpcnt ipl write reset 0000000000000000
56f8013 technical data, rev. 2 48 freescale semiconductor preliminary 5.6.1.5 eonce trace buffer interrupt priority level (trbuf ipl)? bits 5?4 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 5.6.1.6 eonce breakpoint unit interrupt priority level (bkpt_u ipl)? bits 3?2 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 5.6.1.7 eonce step counter interrupt priority level (stpcnt ipl)? bits 1?0 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 1 through 3. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 1 ? 10 = irq is priority level 2 ? 11 = irq is priority level 3 5.6.2 interrupt priority register 1 (ipr1) figure 5-4 interrupt priority register 1 (ipr1) base + $1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read gpiob ipl gpioc ipl gpiod ipl 0 0 fm_cbe ipl fm_cc ipl fm_err ipl pll ipl write reset 0000000000000000
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 49 preliminary 5.6.2.1 gpiob interrupt priority level (gpiob ipl)?bits 15?14 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.2 gpioc interrupt priority level (gpioc ipl)?bits 13?12 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.3 gpiod interrupt priority level (gpiod ipl)?bits 11?10 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.4 reserved?bits 9?8 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.2.5 fm command, data, address buffers empty interrupt priority level (fm_cbe ipl)?bits 7?6 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2
56f8013 technical data, rev. 2 50 freescale semiconductor preliminary 5.6.2.6 fm command complete priority level (fm_cc ipl)?bits 5?4 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.7 fm error interrupt priority level (fm_err ipl)?bits 3?2 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.2.8 pll loss of reference or change in lock status interrupt priority level (pll ipl)?bits 1?0 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3 interrupt priority register 2 (ipr2) figure 5-5 interrupt priority register 2 (ipr2) base + $2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read sci_rcv ipl sci_rerr ipl 0 0 sci_tidl ipl sci_xmit ipl spi_xmit ipl spi_rcv ipl gpioa ipl write reset 0000000000000000
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 51 preliminary 5.6.3.1 sci receiver full interrupt priority level (sci_rcv ipl)? bits 15?14 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.2 sci receiver error interrupt priority level (sci_rerr ipl)? bits 13?12 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.3 reserved?bits 11?10 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.3.4 sci transmitter idle interrupt priority level (sci_tidl ipl)? bits 9?8 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.5 sci transmitter empty interrupt priority level (sci_xmit ipl)? bits 7?6 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2
56f8013 technical data, rev. 2 52 freescale semiconductor preliminary 5.6.3.6 spi transmitter empty interrupt priority level (spi_xmit ipl)? bits 5?4 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.7 spi receiver full interrupt priority level (spi_rcv ipl)? bits 3?2 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.3.8 gpioa interrupt priority level (gpioa ipl)?bits 1?0 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. it is disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4 interrupt priority register 3 (ipr3) figure 5-6 interrupt priority register 3 (ipr3) base + $3 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read adca_cc ipl tmr_3 ipl tmr_2 ipl tmr_1 ipl tmr_0 ipl i2c_addr ipl 0 0 0 0 write reset 0 000000000000000
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 53 preliminary 5.6.4.1 adca conversion complete interrupt priority level (adca_cc ipl)?bits 15?14 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.2 timer channel 3 interrupt priority level (tmr_3 ipl)?bits 13?12 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.3 timer channel 2 interrupt priority level (tmr_2 ipl)?bits 11?10 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.4 timer channel 1 interrupt priority level (tmr_1 ipl)?bits 9?8 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2
56f8013 technical data, rev. 2 54 freescale semiconductor preliminary 5.6.4.5 timer channel 0 interrupt priority level (tmr_0 ipl)?bits 7?6 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.6 i 2 c address detect interrupt priority level (i2c_addr ipl)?bits 5?4 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.4.7 reserved?bits 3?0 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.5 interrupt priority register 4 (ipr4) figure 5-7 interrupt priority register 4 (ipr4) 5.6.5.1 reserved?bits 15?8 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.5.2 pwm fault interrupt priority level (pwm_f ipl)? bits 7?6 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 base + $4 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 pwm_f ipl pwm_rl ipl adc_zc_le ipl adcb_cc ipl write reset 0000000000000000
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 55 preliminary 5.6.5.3 reload pwm interrupt priority level (pwm_rl ipl)? bits 5?4 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.5.4 adc zero crossing or limit error interrupt priority level (adc_zc_le ipl)? bits 3?2 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.5.5 adcb conversion complete interrupt priority level (adcb_cc ipl)?bits 1?0 this field is used to set the interrupt priority leve l for irqs. this irq is limited to priorities 0 through 2. they are disabled by default. ? 00 = irq disabled (default) ? 01 = irq is priority level 0 ? 10 = irq is priority level 1 ? 11 = irq is priority level 2 5.6.6 vector base address register (vba) figure 5-8 vector base address register (vba) 5.6.6.1 reserved?bits 15?14 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. base + $5 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 vector_base_address write reset 000000 0 0 00000000
56f8013 technical data, rev. 2 56 freescale semiconductor preliminary 5.6.6.2 vector address bus (vab) bits 13?0 the value in this register is used as the upper 14 bi ts of the interrupt vector vab[20:0]. the lower 7 bits are determined based on the highest priority interr upt and are then appended onto vba before presenting the full vab to the core. 5.6.7 fast interrupt match 0 register (fim0) figure 5-9 fast interrupt match 0 register (fim0) 5.6.7.1 reserved?bits 15?6 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.7.2 fast interrupt 0 vector number (fast interrupt 0)?bits 5?0 these values determine which irq will be fast interr upt 0. fast interrupts vector directly to a service routine based on values in the fast interrupt vector address registers without having to go to a jump table first. irqs used as fast interrupts must be set to priority level 2. unexpected results will occur if a fast interrupt vector is set to any other priority. a fa st interrupt automatically becomes the highest-priority level 2 interrupt regardless of its location in the interr upt table prior to being declared as fast interrupt. fast interrupt 0 has priority over fast interrupt 1. to determine the vector number of each irq, refer to the vector table. 5.6.8 fast interrupt 0 vector address low register (fival0) figure 5-10 fast interrupt 0 vector address low register (fival0) 5.6.8.1 fast interrupt 0 vector address low (fival0)?bits 15?0 the lower 16 bits of the vector address used for fast interrupt 0. this register is combined with fivah0 to form the 21-bit vector address for fast interrupt 0 defined in the fim0 register. base + $6 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 fast interrupt 0 write reset 0000000000000000 base + $7 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read fast interrupt 0 vector address low write reset 0000000000000000
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 57 preliminary 5.6.9 fast interrupt 0 vector address high register (fivah0) figure 5-11 fast interrupt 0 vector address high register (fivah0) 5.6.9.1 reserved?bits 15?5 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.9.2 fast interrupt 0 vector address high (fivah0)?bits 4?0 the upper five bits of the vector address used for fast interrupt 0. this register is combined with fival0 to form the 21-bit vector address for fast interrupt 0 defined in the fim0 register. 5.6.10 fast interrupt 1 match register (fim1) figure 5-12 fast interrupt 1 match register (fim1) 5.6.10.1 reserved?bits 15?6 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.10.2 fast interrupt 1 vector number (fast interrupt 1)?bits 5?0 these values determine which irq will be fast interr upt 1. fast interrupts vector directly to a service routine based on values in the fast interrupt vector address registers without having to go to a jump table first. irqs used as fast interrupts must be set to priority level 2. unexpected results will occur if a fast interrupt vector is set to any other priority. a fast interrupt automatically becomes the highest priority level 2 interrupt, regardless of its location in the interr upt table prior to being declared as fast interrupt. fast interrupt 0 has priority over fast interrupt 1. to determine the vector number of each irq, refer to the vector table. base + $8 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 0 fast interrupt 0 vector address high write reset 0000000000000000 base + $9 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 fast interrupt 1 write reset 0000000000000000
56f8013 technical data, rev. 2 58 freescale semiconductor preliminary 5.6.11 fast interrupt 1 vector address low register (fival1) figure 5-13 fast interrupt 1 vector address low register (fival1) 5.6.11.1 fast interrupt 1 vector address low (fival1)?bits 15?0 the lower 16 bits of the vector address used for fast interrupt 1. this register is combined with fivah1 to form the 21-bit vector address for fast interrupt 1 defined in the fim1 register. 5.6.12 fast interrupt 1 vector address high (fivah1) figure 5-14 fast interrupt 1 vector address high register (fivah1) 5.6.12.1 reserved?bits 15?5 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 5.6.12.2 fast interrupt 1 vector address high (fivah1)?bits 4?0 the upper five bits of the vector address used for fast interrupt 1. this register is combined with fival1 to form the 21-bit vector address for fast interrupt 1 defined in the fim1 register. 5.6.13 irq pending register 0 (irqp0) figure 5-15 irq pending register 0 (irqp0) 5.6.13.1 irq pending (pending)?bits 15?1 this register combines with irqp1 and irqp2 to re present the pending irqs for interrupt vector numbers 2 through 45. ? 0 = irq pending for this vector number ? 1 = no irq pending for this vector number 5.6.13.2 reserved?bit 0 this bit is reserved or not implemented. it is read as 1 and cannot be modified by writing. base + $a 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read fast interrupt 1 vector address low write reset 0000000000000000 base + $b 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 0 fast interrupt 1 vector address high write reset 0000000000000000 base + $c 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read pending[16:2] 1 write reset 1111111111111111
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 59 preliminary 5.6.14 irq pending register 1 (irqp1) figure 5-16 irq pending register 1 (irqp1) 5.6.14.1 irq pending (pending)?bits 32?17 this register combines with irqp0 and irqp2 to re present the pending irqs for interrupt vector numbers 2 through 45. ? 0 = irq pending for this vector number ? 1 = no irq pending for this vector number 5.6.15 irq pending register 2 (irqp2) figure 5-17 irq pending register 2 (irqp2) 5.6.15.1 irq pending (pending)?bits 45?33 this register combines with irqp0 and irqp1 to re present the pending irqs for interrupt vector numbers 2 through 45. ? 0 = irq pending for this vector number ? 1 = no irq pending for this vector number 5.6.16 interrupt control register (ictrl) figure 5-18 interrupt control register (ictrl) 5.6.16.1 interrupt (int)?bit 15 this read-only bit reflects the state of the interrupt to the 56800e core. ? 0 = no interrupt is being sent to the 56800e core ? 1 = an interrupt is being sent to the 56800e core base + $d 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read pending[32:17] write reset 1111111111111111 base + $e 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 1 1 1 pending[45:33] write reset 1111111111111111 $base + $12 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read int ipic vab int_ dis 1 1 1 0 0 write reset 0000000000011100
56f8013 technical data, rev. 2 60 freescale semiconductor preliminary 5.6.16.2 interrupt priority level (ipic)?bits 14?13 these read-only bits reflect the state of the new interrupt priority level bits being presented to the 56800e core. these bits indicate the priority level needed fo r a new irq to interrupt the current interrupt being sent to the 56800e core. this field is only updated when the 56800e core jumps to a new interrupt service routine. note: nested interrupts may cause this field to be updated before the original interrupt service routine can read it. ? 00 = required nested exception priority levels are 0, 1, 2, or 3 ? 01 = required nested exception priority levels are 1, 2, or 3 ? 10 = required nested exception priority levels are 2 or 3 ? 11 = required nested exception priority level is 3 5.6.16.3 vector number - vector address bus (vab)?bits 12?6 this read-only field shows the vector number (vab[6:0]) used at the time the last irq was taken. in the case of a fast interrupt, it shows the lower address bits of the jump address. this field is only updated when the 56800e core jumps to a new interrupt service routine. note: nested interrupts may cause this field to be updated before the original interrupt service routine can read it. 5.6.16.4 interrupt disable (int_dis)?bit 5 this bit allows all interrupts to be disabled. ? 0 = normal operation (default) ? 1 = all interrupts disabled 5.6.16.5 reserved?bits 4?2 this bit field is reserved or not implemented. it is read as 1 and cannot be modified by writing. 5.6.16.6 reserved?bits 1?0 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. table 5-3 interrupt priority encoding ipic_value[1:0] current interrupt priority level required nested exception priority 00 no interrupt or swilp priorities 0, 1, 2, 3 01 priority 0 priorities 1, 2, 3 10 priority 1 priorities 2, 3 11 priority 2 or 3 priority 3
resets 56f8013 technical data, rev. 2 freescale semiconductor 61 preliminary 5.7 resets 5.7.1 general 5.7.2 description of reset operation 5.7.2.1 reset handshake timing the itcn provides the 56800e core with a reset vector address on the vab pins whenever reset is asserted from the sim. the reset vector will be pr esented until the second risi ng clock edge after reset is released. the general timing is shown in figure 5-19 . figure 5-19 reset interface 5.7.3 itcn after reset after reset, all of the itcn registers are in their default states. this means all interrupts are disabled, except the core irqs with fixed priorities: ? illegal instruction ? sw interrupt 3 ? hw stack overflow ? misaligned long word access ? sw interrupt 2 ? sw interrupt 1 ? sw interrupt 0 ? sw interrupt lp these interrupts are enabled at their fixed priority levels. table 5-4 reset summary reset priority source characteristics core reset rst core reset from the sim res clk vab pab reset_vector_adr read_adr
56f8013 technical data, rev. 2 62 freescale semiconductor preliminary part 6 system integration module (sim) 6.1 introduction the sim module is a system catchall for the glue logic that ties together the system-on-chip. it controls distribution of resets and clocks and provides a numbe r of control features. the system integration module is responsible for the following functions: ? reset sequencing ? clock control & distribution ? stop/wait control ? system status registers ? registers for software access to the jtag id of the chip ? test registers ? power control ? i/o pad multiplexing these are discussed in more detail in the sections that follow. 6.2 features the sim has the following features: ? system bus clocks with pipeline hold-off support ? system clocks for non-pipelined interfaces ? peripheral clocks for tmr and pwm with high-speed (3x) option ? power-saving clock gating for peripherals ? itck clock to the 56800e core tap interface ? three power modes (run, wait, stop) to control power utilization ? stop mode shuts down the 56800e core, system clock, and peripheral clock ? wait mode shuts down the 56800e core and unnecessary system clock operation ? run mode supports full part operation ? controls, with write protection, the enable/disable of 56800e core wait and stop instructions ? controls, with write protection, the enable/disable of large regulator standby mode ? controls to route functional signals to selected peripherals and i/o pads ? controls deassertion sequence of internal resets ? software-initiated reset ? four 16-bit registers reset only by a power-on reset usable for general-purpose software control ? timer channel stop mode clocking controls ? sci stop mode clocking control to support lin sleep mode stop recovery ? short addressing location control ? registers for software access to the jtag id of the chip ? controls output to clko pin
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 63 preliminary 6.3 register descriptions table 6-1 sim registers (sim_base = $00 f140) address offset address acronym register name section location base + $0 sim_ctrl control register 6.3.1 base + $1 sim_rstat reset status register 6.3.2 base + $2 sim_swc0 software control register 0 6.3.3 base + $3 sim_swc1 software control register 1 6.3.3 base + $4 sim_swc2 software control register 2 6.3.3 base + $5 sim_swc3 software control register 3 6.3.3 base + $6 sim_mshid most significant half of jtag id 6.3.4 base + $7 sim_lshid least significant half of jtag id 6.3.5 base + $8 sim_pwr power control register 6.3.6 reserved base + $a sim_clkout clko select register 6.3.7 base + $b sim_gps gpio peripheral select register 6.3.8 base + $c sim_pce peripheral clock enable register 6.3.9 base + $d sim_iosahi i/o short address location high register 6.3.10 base + $e sim_iosalo i/o short address location low register 6.3.10
56f8013 technical data, rev. 2 64 freescale semiconductor preliminary figure 6-1 sim register map summary 6.3.1 sim control register (sim_ctrl) figure 6-2 sim control register (sim_ctrl) add. offset address acronym 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 $0 sim_ ctrl r tc3_ sd tc2_ sd tc1_ sd tc0_ sd sci_ sd 0 tc3_ inp 0 0 0 once ebl 0 sw rst stop_ disable wait_ disable w $1 sim_ rstat r 0 0 0 0 0 0 0 0 0 0 swr copr extr por 0 0 w $2 sim_swc0 r software control data 0 w $3 sim_swc1 r software control data 1 w $4 sim_swc2 r software control data 2 w $5 sim_swc3 r software control data 3 w $6 sim_mshid r 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 0 w $7 sim_lshid r 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 1 w $8 sim_pwr r 0 0 0 0 0 0 0 0 0 0 0 0 0 0 lrstdby w reserved $a sim_ clkout r 0 0 0 0 0 0 pwm 3pwm 2pwm 1pwm 0 clk dis clkosel w $b sim_gps r tcr pcr 0 0 cfg_ b7 cfg_ b6 cfg_ b5 cfg_ b4 cfg_ b3 cfg_ b2 cfg_ b1 cfg_ b0 cfg_a5 cfg_a4 w $c sim_pce r i2c 0 adc 0 0 0 0 0 0 tmr 0 sci 0 spi 0 pwm w $d sim_iosahi r 0 0 0 0 0 0 0 0 0 0 0 0 0 0 isal[23:22] w $e sim_iosalo r isal[21:6] w 0 = read as 0 1 = read as 1 = reserved = reserved base + $0 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read tc3_ sd tc2_ sd tc1_ sd tc0_ sd sci_ sd 0 tc3_ inp 0 0 0 once ebl sw rst stop_ disable wait_ disable write reset 0000000000000000
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 65 preliminary 6.3.1.1 timer channel 3 stop disable (tc3_sd)?bit 15 this bit enables the operation of the timer channel 3 peripheral clock in stop mode. ? 0 = timer channel 3 disabled in stop mode ? 1 = timer channel 3 enabled in stop mode 6.3.1.2 timer channel 2 stop disable (tc2_sd)?bit 14 this bit enables the operation of the timer channel 2 peripheral clock in stop mode. ? 0 = timer channel 2 disabled in stop mode ? 1 = timer channel 2 enabled in stop mode 6.3.1.3 timer channel 1 stop disable (tc1_sd)?bit 13 this bit enables the operation of the timer channel 1 peripheral clock in stop mode. ? 0 = timer channel 1 disabled in stop mode ? 1 = timer channel 1 enabled in stop mode 6.3.1.4 timer channel 0 stop disable (tc0_sd)?bit 12 this bit enables the operation of the timer channel 0 peripheral clock in stop mode. ? 0 = timer channel 0 disabled in stop mode ? 1 = timer channel 0 enabled in stop mode 6.3.1.5 sci stop disable (sci_sd)?bit 11 this bit enables the operation of the sci peripheral clock in stop mode. this is recommended for use in lin mode so that the sci can generate interrupts and recover from stop mode while the lin interface is in sleep mode and using stop mode to reduce power consumption. ? 0 = sci disabled in stop mode ? 1 = sci enabled in stop mode 6.3.1.6 reserved?bit 10 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.1.7 timer channel 3 input (tc3_inp)?bit 9 this bit selects the input of timer ch annel 3 to be from the pwm or gpio. ? 0 = timer channel 3 input from pwm reload_sync signal ? 1 = timer channel 3 input controlled by sim_gps register cfg_b3 and cfg_a5 fields
56f8013 technical data, rev. 2 66 freescale semiconductor preliminary 6.3.1.8 reserved?bits 8?6 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.1.9 once enable (onceebl)?bit 5 ? 0 = once clock to 56800e core enabled when core tap is enabled ? 1 = once clock to 56800e core is always enabled 6.3.1.10 software reset (swrst)?bit 4 writing 1 to this field will cause the part to reset. 6.3.1.11 stop disable (stop_disable[1:0])?bits 3?2 ? 00 = stop mode will be entered when the 56800e core executes a stop instruction ? 01 = the 56800e stop instruction will not cause entry into stop mode ? 10 = stop mode will be entered when the 56800e core executes a stop instruction and the stop_disable field is write-protected until the next reset ? 11 = the 56800e stop instruction will not cause entry into stop mode and the stop_disable field is write-protected until the next reset 6.3.1.12 wait disable (wait_disable[1:0])?bits 1?0 ? 00 = wait mode will be entered when the 56800e core executes a wait instruction ? 01 = the 56800e wait instruction will not cause entry into wait mode ? 10 = wait mode will be entered when the 56800e core executes a wait instruction and the wait_disable field is write-protected until the next reset ? 11 = the 56800e wait instruction will not cause entry into wait mode and the wait_disable field is write-protected until the next reset 6.3.2 sim reset status register (sim_rstat) this register is updated upon any system reset and indi cates the cause of the most recent reset. it also controls whether the cop reset vector or regular reset vector in the vector table is used. this register is asynchronously reset during power-on reset (see pow er supervisor module) and subsequently is synchronously updated based on the level of the external reset, software reset, or cop reset inputs. only one source will ever be indicated. in the event that multiple reset sources assert simultaneously, the highest-precedence source will be indicated. the pr ecedence from highest to lowest is por, extr, copr, and swr. while por is always set during a power-on reset, extr will become set if the external reset pin is asserted or remains assert ed after the power-on reset (por) has deasserted. figure 6-3 sim reset status register (sim_rstat) base + $1 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 swr copr extr por 0 0 write reset 0000000000 00
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 67 preliminary 6.3.2.1 reserved?bits 15?6 this bit field is reserved or not implemented. it is read as zero and cannot be modified by writing. 6.3.2.2 software reset (swr)?bit 5 when set, this bit indicates that the previous system reset occurred as a result of a software reset (written 1 to swrst bit in the sim_ctrl register). it will not be set if a cop, external, or por reset also occurred. 6.3.2.3 cop reset (copr)?bit 4 when set, this bit indicates that the previous syst em reset was caused by the computer operating properly (cop) timer. it will not be set if an external or por reset also occurred. if copr is set as code starts executing, the cop reset vector in the vector table will be used. otherwise, the normal reset vector is used. 6.3.2.4 external reset (extr)?bit 3 when set, this bit indicates that the previous system reset was caused by an external reset. it will only be set if the external reset pin was asserted or rema ined asserted after the power-on reset deasserted. 6.3.2.5 power-on reset (por)?bit 2 this bit is set during a power-on reset. 6.3.2.6 reserved?bits 1?0 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.3 sim software control registers (sim_swc0, sim_swc1, sim_swc2, and sim_swc3) only sim_swc0 is shown in this section. sim_ swc1, sim_swc2, and sim_swc3 are identical in functionality. figure 6-4 sim software control register 0 (sim_swc0) 6.3.3.1 software control data 0 (field)?bits 15?0 this register is reset only by the power-on reset (por). it has no part-specific functionality and is intended for use by a software developer to contain data that will be unaffected by the other reset sources (reset pin, software reset, and cop reset). base + $2 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read software control data 0 write reset 0000000000000000
56f8013 technical data, rev. 2 68 freescale semiconductor preliminary 6.3.4 most significant half of jtag id (sim_mshid) this read-only register displays the most significant ha lf of the jtag id for the chip. this register reads $01f2. figure 6-5 most significant half of jtag id (sim_mshid) 6.3.5 least significant half of jtag id (sim_lshid) this read-only register displays the least significant ha lf of the jtag id for the chip. this register reads $401d. figure 6-6 least significant half of jtag id (sim_lshid) 6.3.6 sim power control register (sim_pwr) this register controls the standby mode of the large regulator. the large regulator derives the core digital logic power supply from the io power supply. in some ci rcumstances, the large regulator may be put in a reduced-power standby mode without interfering with part operation. refer to the overview of power-down modes and the overview of clock genera tion for more information on the use of large regulator standby. figure 6-7 sim power control register (sim_pwr) 6.3.6.1 reserved?bits 15?2 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. base + $6 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 1 1 1 1 1 0 0 1 0 write reset 0000000111110010 base + $7 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 1 0 0 0 0 0 0 0 0 0 1 1 1 0 1 write reset 0100000000011101 base + $8 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 0 0 0 0 lrstdby write reset 0000000000000000
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 69 preliminary 6.3.6.2 large regulator standby mode[1:0] (lrstdby)?bits 1?0 this bit controls the pull-up resistors on the irqa pin. ? 00 = large regulator is in normal mode ? 01 = large regulator is in standby (reduced-power) mode ? 10 = large regulator is in normal mode and the lrstdby field is write-protected until the next reset ? 11 = large regulator is in standby mode and the lrstdby field is write-protected until the next reset 6.3.7 clko select register (sim_clkout) the clko select register can be used to multiplex out selected clocks generated inside the clock generation and sim modules. all functionality is for test purposes only and is subject to unspecified latencies. glitches may be produced when the clock is enabled or switched. the lower four bits of the gpio a register can function as gpio, pwm, or as additional clock output signals. gpio has priority and is enabled/disa bled via the gpioa_pere n. if gpioa[3:0] are programmed to operate as peripheral outputs, then the choice between pwm and additional clock outputs is done here in the clkout. the default state is for the peripheral function of gpioa[3:0] to be programmed as pwm. this can be changed by altering pwm 3 through pwm 0. figure 6-8 clko select register (sim_clkout) 6.3.7.1 reserved?bits 15?10 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.7.2 pwm 3?bit 9 ? 0 = peripheral output function of gpioa[3] is defined to be pwm 3 ? 1 = peripheral output function of gpioa[3] is defined to be the relaxation oscillator clock 6.3.7.3 pwm 2?bit 8 ? 0 = peripheral output function of gpioa[2] is defined to be pwm 2 ? 1 = peripheral output function of gpioa[2] is defined to be the system clock 6.3.7.4 pwm 1?bit 7 ? 0 = peripheral output function of gpioa[1] is defined to be pwm 1 ? 1 = peripheral output function of gpioa[1] is defined to be two times the rate of the system clock base + $a 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 pwm 3pwm 2pwm 1pwm 0 clk dis clkosel write reset 000000 0 0 00100000
56f8013 technical data, rev. 2 70 freescale semiconductor preliminary 6.3.7.5 pwm 0?bit 6 ? 0 = peripheral output function of gpioa[0] is defined to be pwm 0 ? 1 = peripheral output function of gpioa[0] is defined to be three times the rate of the system clock 6.3.7.6 clockout disable (clkdis)?bit 5 ? 0 = clkout output is enabled and will output the signal indicated by clkosel ? 1 = clkout is 0 6.3.7.7 clockout select (clkosel)?bits 4?0 selects clock to be muxed out on the clko pin. ? 00000 = reserved for factory test?continuous system clock ? 01001 = reserved for factory test?occs mstr osc clock ? 01011 = reserved for factory test?adc clock ? 01100 = reserved for factory test?jtag tclk ? 01101 = reserved for factory test?continuous peripheral clock ? 01110 = reserved for factory test?continuous inverted peripheral clock ? 01111 = reserved for factory test?continuous high-speed peripheral clock 6.3.8 sim gpio peripheral select register (sim_gps) all of the peripheral pins on the 56f8013 share their i nput/output (i/o) with gpio ports. in order to select peripheral or gpio control, program the gpio x _peren register. in some cases, there are two possible peripherals as well as the gpio functionality available for control of the i/o. in these cases, the sim_gps register is used to determine which peripheral has control. as shown in figure 6-9 , the gpio peripheral enable register (peren) has the final control over which pin controls the i/o. sim_gps simply decides wh ich peripheral will be routed to the i/o when peren = 1. figure 6-9 overall control of pads using sim_gps control gpiob_peren register gpio controlled i/o pad control sim_gps register quad timer controlled sci controlled 0 1 0 1
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 71 preliminary figure 6-10 gpio peripheral select register (sim_gps) 6.3.8.1 tmr clock rate (tcr)?bit 15 this bit selects the clock speed for the tmr module. ? 0 = tmr module clock rate equals core clock rate, typically 32mhz (default) ? 1 = tmr module clock rate equals three times core clock rate note: this bit should only be changed while the tmr module?s clock is disabled. see section 6.3.9 . note: high-speed clocking is only available when the pll is being used. note: if the pwm reload pulse is used as input to timer 3 (see sim_ctrl: tc3_inp, section 6.3.1.7 ), then the clocks of the quad timer and pwm must be related, as shown in table 6-2 . 6.3.8.2 pwm clock rate (pcr)?bit 14 this bit selects the clock speed for the pwm module. ? 0 = pwm module clock rate equals core clock rate, typically 32mhz (default) ? 1 = pwm module clock rate equals three times core clock rate note: this bit should only be changed while the pwm module?s clock is disabled. see section 6.3.9 . note: high-speed clocking is only available when the pll is being used. note: if the pwm reload pulse is used as input to timer 3 (see sim_ctrl: tc3_inp, section 6.3.1.7 ), then the clocks of the quad timer and pwm must be related, as shown in table 6-2 . base + $b 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read tcr pcr 0 0 cfg_ b7 cfg_ b6 cfg_ b5 cfg_ b4 cfg_ b3 cfg_ b2 cfg_ b1 cfg_ b0 cfg_a5 cfg_a4 write reset 0000 00000000 0000 table 6-2 allowable quad timer and pwm clock rates when using pwm reload pulse quad timer clock speed 1x 3x pwm 1x ok ok 3x no ok
56f8013 technical data, rev. 2 72 freescale semiconductor preliminary 6.3.8.3 reserved?bits 13?12 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. note: take care when programming the following cfg_* signals so as not to connect two different i/o pads to the same peripheral input . for example, do not set cfg_b7 to select scl and also set cfg_b0 to select scl. if this occurs for an output signal, then the signal will be routed to two i/o pads. for input si gnals, the values on the two i/o pads will be ored together before reaching the peripheral. 6.3.8.4 configure gpiob7 (cfg_b7)?bit 11 this bit selects the alternate function for gpiob7. ? 0 = txd (default) ?1 = scl 6.3.8.5 configure gpiob6 (cfg_b6)?bit 10 this bit selects the alternate function for gpiob6. ? 0 = rxd (default) ?1 = sda note: the clkmode bit in the occs oscillator control register can enable this pin as the source clock to the chip. in this mode, make sure that no on-chip peripheral (including the gpio) is driving this pin. 6.3.8.6 configure gpiob5 (cfg_b5)?bit 9 this bit selects the alternate function for gpiob5. ? 0 = t1 (default) ? 1 = fault3 6.3.8.7 configure gpiob4 (cfg_b4)?bit 8 this bit selects the alternate function for gpiob4. ? 0 = t0 (default) ?1 = clko 6.3.8.8 configure gpiob3 (cfg_b3)?bit 7 this bit selects the alternate function for gpiob3. ? 0 = mosi (default) ?1 = t3
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 73 preliminary 6.3.8.9 configure gpiob2 (cfg_b2)?bit 6 this bit selects the alternate function for gpiob2. ? 0 = miso (default) ?1 = t2 6.3.8.10 configure gpiob1 (cfg_b1)?bit 5 this bit selects the alternate function for gpiob1. ?0 = ss (default) ?1 = sda 6.3.8.11 configure gpiob0 (cfg_b0)?bit 4 this bit selects the alternate function for gpiob0. ? 0 = sclk (default) ?1 = scl 6.3.8.12 configure gpioa5[1:0] (cfg_a5)?bits 3?2 these bits select the alternate function for gpioa5. ? 00 = select pwm5 when peripheral mode is enabled in gpioa5 (default) ? 01 = select pwm5 when peripheral mode is enabled in gpioa5 ? 10 = select fault2 when peripheral mode is enabled in gpioa5 ? 11 = select t3 when peripheral mode is enabled in gpioa5 6.3.8.13 configure gpioa4[1:0] (cfg_a4)?bits 1?0 these bits select the alternate function for gpioa4. ? 00 = select pwm4 when peripheral mode is enabled in gpioa4 (default) ? 01 = select pwm4 when peripheral mode is enabled in gpioa4 ? 10 = select fault1 when peripheral mode is enabled in gpioa4 ? 11 = select t2 when peripheral mode is enabled in gpioa4 6.3.9 peripheral clock enable register (sim_pce) the peripheral clock enable register is used to enable or disable clocks to the peripherals as a power savings feature. the clocks can be individually controlled for each peripheral on the chip. the corresponding peripheral should itself be disabled while its clock is shut off. ipbus writes cannot be made to a module that has its clock disabled. figure 6-11 peripheral clock enable register (sim_pce) base + $c 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read i2c 0 adc 0 0 0 0 0 0 tmr 0 sci 0 spi 0 pwm write reset 0000000 0 00000 0 0 0
56f8013 technical data, rev. 2 74 freescale semiconductor preliminary 6.3.9.1 i 2 c ipbus clock enable (i2c)?bit 15 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.2 reserved?bit 14 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.9.3 analog-to-digital converter ipbus clock enable (adc)?bit 13 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.4 reserved?bits 12?7 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.9.5 timer ipbus clock enable (tmr)?bit 6 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.6 reserved?bit 5 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.9.7 sci ipbus clock enable (sci)?bit 4 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.8 reserved?bit 3 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.9.9 spi ipbus clock enable (spi)?bit 2 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.9.10 reserved?bit 1 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing.
register descriptions 56f8013 technical data, rev. 2 freescale semiconductor 75 preliminary 6.3.9.11 pwm ipbus clock enable (pwm)?bit 0 each bit controls clocks to the indicated peripheral. ? 0 = the clock is not provided to the peripheral (the peripheral is disabled) ? 1 = clocks are enabled 6.3.10 i/o short address location register (sim_iosahi and sim_iosalo) the i/o short address location registers are used to specify the memory referenced via the i/o short address mode. the i/o short address mode allows the in struction to specify the lower six bits of address; the upper address bits are not directly controllable. this register set allows limited control of the full address, as shown in figure 6-12 . figure 6-12 i/o short address determination with this register set, an interrupt driver can set th e sim_iosalo register pair to point to its peripheral registers and then use the i/o short addressing mode to reference them. the isr should restore this register to its previous contents prior to returning from interrupt. note: the default value of this register set points to the eonce registers. note: the pipeline delay between setting this register set and using short i/o addressing with the new value is five instruction cycles. figure 6-13 i/o short address location high register (sim_iosahi) base + $d 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read 0 0 0 0 0 0 0 0 0 0 0 0 0 0 isal[23:22] write reset 000000 0 0 0000 0 0 11 instruction portion ? hard coded? address portion 6 bits from i/o short address mode instruction 16 bits from sim_iosalo register 2 bits from sim_iosahi register full 24-bit for short i/o address
56f8013 technical data, rev. 2 76 freescale semiconductor preliminary 6.3.10.1 reserved?bits 15?2 this bit field is reserved or not implemented. it is read as 0 and cannot be modified by writing. 6.3.10.2 input/output short address location (isal[23:22])?bits 1?0 this field represents the upper two address b its of the ?hard coded? i/o short address. figure 6-14 i/o short address location low register (sim_iosalo) 6.3.10.3 input/output short address location (isal[21:6])?bits 15?0 this field represents the lower 16 address bits of the ?hard coded? i/o short address. 6.4 clock generation overview the sim uses master clocks from the occs modul e to produce the peripheral and system (core and memory) clocks. the hs_perf clock input from occs operates at three times the system and peripheral bus rate, or a maximum of 96mhz. the sys_clk_x2 clock input from occs operates at two times the system and peripheral bus rate, or a maximum of 64mhz . peripheral and system clocks are generated at a maximum of 32mhz by dividing the sys_clk_x2 cloc k by two and gating it with appropriate power mode and clock gating controls. the pwm and timer peripheral clocks can op tionally be generated at three times the normal rate at a maximum of 96mhz . these clocks are generated by gating the hs_perf clock with appropriate power m ode and clock gating controls. the occs configuration controls the operating frequency of the sim?s master clocks. in the occs, either an external clock or the relaxation oscillator can be selected as the master clock source (mstr_osc). when selected, the relaxation oscillator can be ope rated at full speed (8mhz), standby speed (400khz using rosb), or powered down (using ropd). an 8mhz mstr_osc can be multiplied to 196mhz using the pll and postscaled to provide a variety of high speed clock rates. either the postscaled pll output or mstr_osc signal can be selected to produc e the master clocks to the sim. when the pll is not selected, the hs_perf clock is disabl ed and the sys_clk_x2 clock is mstr_osc. in combination with the occs module, the sim provides power modes (see section 6.5 ), clock enables (sim_pce register, clk_dis, once_ebl), and clock rate controls (tcr, pcr) to provide flexible control of clocking and power utilization. the sim?s clock enable controls can be used to disable individual clocks when not needed. the clock rate c ontrols enable the high speed clocking option for the timer channels and pwm but require the pll to be on and selected. refer to the 56f8300 peripheral user manual for further details. base + $e 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 read isal[21:6] write reset 111111 1 1 1111 1 1 11
power-down modes 56f8013 technical data, rev. 2 freescale semiconductor 77 preliminary 6.5 power-down modes the 56f8013 operates in one of five power-down modes, as shown in table 6-3 . the power modes provide additional means to disable clock domains, configure the voltage regulator, and configure clock generation to mana ge power utilization, as shown in table 6-3 . run, wait, and stop modes provide means of enabling/disabling the peri pheral and/or core clocking as a group. stop disable controls are provided for selected peripherals in the c ontrol register (sci and tmr channels) so that these table 6-3 clock operation in power-down modes mode core clocks peripheral clocks description run core and memory clocks disabled peripheral clocks enabled device is fully functional wait core and memory clocks disabled peripheral clocks enabled core executes wait instruction to enter this mode. typically used for power-conscious applications. possible recoveries from wait mode to run mode are: 1. any interrupt 2. executing a debug mode entry command during the 56800e core jtag interface 2. any reset (por, external, software, cop) stop master clock generation in the occs remains operational, but the sim disables the generation of system and peripheral clocks. core executes stop instruction to enter this mode. possible recoveries from stop mode to run mode are: 1. interrupt from tmr channels that have been configured to operate in stop mode (tcx_sd) 2. interrupt for sci configured to operate in stop mode (sci_sd) 3. low-voltage interrupt 4. executing a debug mode entry command using the 56800e core jtag interface 5. any reset (por, external, software, cop) standby the occs generates the sys_clk_x2 clock at a reduced frequency (400khz). the pll and hs_perf clocks are disabled and the high-speed peripheral option is not available. system and peripheral clocks operate at 200khz. the user configures the occs and sim to select the relaxation oscillator clock source (precs), shut down the pll (pllpd), put the relaxation oscillator in standby mode (rosb), and put the large regulator in standby (lrstdby). the part is fully operational, but operating at a minimum frequency and power configuration. recovery requires reversing the sequence used to enter this mode (allowing for pll lock time). power-down master clock generation in the occs is completely shut down. all system and peripheral clocks are disabled. the user configures the occs and sim to enter standby mode as shown in the previous description, followed by powering down the oscillator (ropd). the only possible recoveries from this mode are: 1. external reset 2. power-on reset
56f8013 technical data, rev. 2 78 freescale semiconductor preliminary peripheral clocks can optionally continue to operate in stop mode and generate interrupts which will return the part from stop to run mode. standby mode provi des normal operation but at very low speed and power utilization. it is possible to invoke stop or wait mode while in standby mode for even greater levels of power reduction. a 400khz clock external clock can opt ionally be used in standby mode to produce the required standby 200khz system bus rate. power-down mode, which selects the rosc clock source but shuts it off, fully disables the part and minimizes its power utilization but is only recoverable via reset. when the pll is not selected and the system bus is operating at 200khz or less, the large regulator can be put into its standby mode (lrstdby) to reduc e the power utilization of that regulator. all peripherals, except the cop/watchdog timer, run at the ipbus clock (peripheral bus) frequency 1 , which is the same as the main processor frequency in this architecture. the cop timer runs at mstr_osc / 1024. the maximum frequency of operati on is sys_clk = 32mhz. the only exception is the tmr and pwm, which can be configured to operat e at three times the system bus rate using tcr and pcr controls, provided the pll is active and selected. 6.6 resets the sim supports four sources of reset, as shown in figure 6-15 . the two asynchronous sources are the external reset pin and the power-on reset (por). the two synchronous sources are the software reset, which is generated within the sim itse lf by writing the sim_ctrl register in section 6.3.1 , and the cop reset. the sim uses these to generate resets for the internal logic. these are outlined in table 6-4 . the first column lists the four primary resets which are calculated. the jtag circuitry is reset by the power-on reset. columns two through five indicate which reset sources trigger these reset signals. the last column provides add itional detail. 1. the tmr ans pwm modules can be operated at three times the ipbus clock frequency. table 6-4 primary system resets reset sources reset signal por external software cop comments extended_por x stretched version of por . relevant 64 relaxation oscillator clock cycles after por deasserts. clkgen_rstxxxxreleased 32 relaxation oscillator clock cycles after all reset sources have released. perip_rst xxxxreleases 32 relaxation oscillator clock cycles after the clkgen_rst is released. core_rst xxxxreleases 32 sys_clk periods after perip_rst is released .
resets 56f8013 technical data, rev. 2 freescale semiconductor 79 preliminary figure 6-15 provides a graphic illustration of the details in table 6-4 . note that the por_delay blocks use the relaxation oscillator clock as their time base since other system clocks are inactive during this phase of reset. figure 6-15 sources of reset functional diagram (test modes not included) por resets are extended 64 mstr_osc clocks to stab ilize the power supply. all resets are subsequently extended for an additional 32 mstr_osc clocks and 64 system clocks as the various internal reset controls are released. given the normal relaxation osci llator rate of 8mhz, the duration of a por reset from when power comes on to when code is running is 28 s. an external reset generation chip may also be used. resets may be a sserted asynchronously, but they are always released internally on a rising edge of the system clock. extended_por jtag memory subsystem peripherals 56800e core_rst delay 32 sys clocks occs clkgen_rst perip_rst delay 32 sys clocks pulse shaper pulse shaper sw reset pulse shaper delay 32 mstr_osc clocks pulse shaper por power-on reset (active low) external reset in (active low) cop (active low) reset delay 64 mstr_osc clocks delay blocks assert immediately and deassert only after the programmed number of clock cycles. combined_rst
56f8013 technical data, rev. 2 80 freescale semiconductor preliminary 6.7 clocks the memory, peripheral and core cl ocks all operate at the same fr equency (32mhz max) with the exception of the tmr and pwm peripheral clocks, wh ich have the option (using tcr and pcr) to operate three times faster. the sim is responsible for stalli ng individual clocks as a response to various hold-off requests, low power modes, and ot her configuration parameters. th e sim has access to the following signals from the occs module: while the sim generates the adc peripheral clock in the same way it generates all other peripheral clocks, the adc standby and conversion clocks are generate d by a direct interface between the adc and the occs module. figure 6-16 illustrates clock relationships to one another and to the various resets as the device comes out of reset. rst is assumed to be the logical and of all active- low system resets (for example, por, external reset, cop and software reset). in the 56f8013 architect ure, this signal will be stretched by the sim for a period of time (up to 96 mstr_osc clock cycles, de pending upon the status of the por) to create the clock generation reset signal (clkgen_rst ). the sim should deassert clkgen_rst synchronously with the negative edge of osc_clk in or der to avoid skew problems. clkgen_rst is delayed 32 sys_clk cycles to create the peripheral reset signal (perip_rst ). perip_rst is then delayed by 32 sys_clk cycles to create core_rst . both perip_rst and core_rst should be released on the negative edge of sys_clk_d as shown. this phased rele asing of system resets is necessary to give some peripherals (for example, the flash interface unit) set-up time prior to the 56800e core becoming active. mstr_osc this comes from the input clock source mux of the occs. it is the output of the relaxation oscillator or the external clock source, depending on precs. it is not guaranteed to be at 50% duty cycle (+ or - 10% can probably be assumed for design purposes). this clock runs continuously, even during resetm and is used for reset generation. hs_perf the pll multiplies the mstr_osc by 24, to a maximum of 192mhz. the zsrc field in occs selects the active source to be the pll. this is divided by 2 and postscaled to produce this maximum 96mhz cl ock. it is used without further division to produce the high-speed (3x system bus rate) variants of the tmr and pwm peripheral clocks. this clock is disabl ed when zsrc is selecting mstr_osc. sys_clk_x2 the pll can multiply the mstr_osc by 24, to a maximum of 192mhz. when the pll is selected by the occs zsrc field, the pll is divided by three and postscaled to produce this maximum 64mhz clock. when mstr_osc is selected by the occs zsrc field, mstr_osc feeds sys_clk_x2 di rectly. the sim takes this clock and divides it by two to generate all the normal (1x system bus rate) peripheral and system clocks.
interrupts 56f8013 technical data, rev. 2 freescale semiconductor 81 preliminary figure 6-16 timing rela tionships of reset signal to clocks 6.8 interrupts the sim generates no interrupts. rst mstr_osc ckgen_rst sys_clk_x2 sys_clk sys_clk_d sys_clk_div2 perip_rst core_rst switch on falling osc_clk 96 mstr_osc cycles switch on falling sys_clk 32 sys_clk cycles delay 32 sys_clk cycles delay maximum delay = 64 mstr_osc cycles for por reset extension and 32 mstr_osc cycles for combined reset extension switch on falling sys_clk
56f8013 technical data, rev. 2 82 freescale semiconductor preliminary part 7 security features the 56f8013 offers security features intended to pr event unauthorized users from reading the contents of the flash memory (fm) array. the 56f8013?s flash securi ty consists of several hardware interlocks that prevent unauthorized users from gaining access to the flash array. note, however, that part of the security must lie with the user?s code. an extreme example would be user?s code that includes a subroutine to read and transfer the contents of the internal program to sci, spi or another peripheral, as this code would defeat the pur pose of security. at the same time, the user may also wish to put a ?backdoor? in his program. as an exam ple, the user downloads a security key through the sci, allowing access to a programming routine that upda tes parameters stored in another section of the flash. 7.1 operation with security enabled once the user has programmed the flash with hi s application code, the 56f8013 can be secured by programming the security bytes located in the fm confi guration field, which are located at the last 9 words of program flash. these non-volatile bytes will ke ep the part secured through reset and through power-down of the device. only two bytes within this fi eld are used to enable or disable security. refer to the flash memory chapter in the 56f8000 peripheral user manual for the state of the security bytes and the resulting state of security. when flash security mode is enabled in accordance with the method described in the flash memory module chapter, the 56f8013 will disable the core eonce debug capabilities. normal program execution is otherwise unaffected. 7.2 flash access lock and unlock mechanisms the 56f8013 has several operating func tional and debug modes. effective flash security must address operating mode selection and anticipate modes in which the on-chip flash can be read without explicit user permission. 7.2.1 disabling eonce access on-chip flash can be read by issuing commands across the eonce port, which is the debug interface for the 56800e cpu. the tclk, tms, tdo, and tdi pins comprise a jtag interface onto which the eonce port functionality is mapped. when the 56f8013 boots, the chip-level jtag tap (test access port) is active and provides the chip?s boundary scan capability and access to the id register, but proper implementation of flash security will block any attempt to access the internal flash memory via the eonce port when security is enabled. 7.2.2 flash lockout recovery using jtag if a user inadvertently enables security on the 56f 8013, the only lockout recovery mechanism is the complete erasure of the internal flash contents, incl uding the configuration field, and thus disables security (the protection register is cleared). this does not comp romise security, as the entire contents of the user?s secured code stored in flash are erased before security is disabled on the 56f8013 on the next reset or power-up sequence.
flash access lock and unlock mechanisms 56f8013 technical data, rev. 2 freescale semiconductor 83 preliminary to start the lockout recovery sequence, the jtag public instruction (lockout_recovery) must first be shifted into the chip-level tap controller?s instruction register. once the lockout_recovery instruction has been shifted into the instruction register, the clock divider value must be shifted into the corresponding 7-bit data regi ster. after the data regist er has been updated, the user must transition the tap controller into the run-test/idle state for the lockout sequence to commence. the controller must remain in this state un til the erase sequence has completed. refer to the 56f8000 peripheral user manual for more details, or contact freescale. note: once the lockout recovery sequence has completed, the user must reset both the jtag tap controller (by advancing the tap state machine to the reset state) and the 56f8013 (by asserting external chip reset) to return to normal unsecured operation. 7.2.3 flash lockout recovery using codewarrior codewarrior can unlock a device using the command se quence described in section 7.2.2 by selecting the debug menu, then selecting dsp56800e , followed by unlock flash . another mechanism is also built into codewarrior using the device?s memory configuration file. the command ? unlock_flash_on_connect1 ? in the . cfg file accomplishes the same task as using the debug menu. 7.2.4 product analysis the recommended method of unsecuring a programmed 56f8013 for product analysis of field failures is via the backdoor key access. the customer would need to supply technical support with the backdoor key and the protocol to access the backdoor routine in the flash. additionally, the keyen bit that allows backdoor key access must be set. an alternative method for performing analysis on a secured microcontroller woul d be to mass-erase and reprogram the flash with the original code, but modify the security bytes. to insure that a customer does not inadvertently lock himself out of the 56f8013 during programming, it is recommended that the user program the backdoor acc ess key first, the application code second and the security bytes within the fm configuration field last.
56f8013 technical data, rev. 2 84 freescale semiconductor preliminary part 8 general purpose input/output (gpio) 8.1 introduction this section is intended to supplement the gpio information found in the 56f8000 peripheral user manual and contains only chip-specific information. this information supercedes the generic information in the 56f8000 peripheral user manual . 8.2 configuration there are four gpio ports defined on the 56f8013. the wi dth of each port, the associated peripheral and reset functions are shown in table 8-1 . the specific mapping of gpio port pins is shown in table 8-2 . table 8-1 gpio ports configuration gpio port available pins in 56f8013 peripheral function reset function a8 pwm, reset gpio, except gpioa7 b8 spi, sci, timer gpio c6 xtal, extal, can, tmrc (gpioc5 and gpioc7 are not bonded out on the 56f8013) analog d4 jtag jtag
configuration 56f8013 technical data, rev. 2 freescale semiconductor 85 preliminary table 8-2 gpio external signals map pins in shaded rows are not available in 56f8013 gpio function peripheral function lqfp package pin notes gpioa0 pwm0 29 defaults to a0 gpioa1 pwm1 28 defaults toa1 gpioa2 pwm2 23 defaults to a2 gpioa3 pwm3 24 defaults to a3 gpioa4 pwm4 / fault1 / t2 22 sim register sim_gps is used to select between pwm4, fault1, and t2 defaults to a4 gpioa5 pwm5 / fault2 / t3 20 sim register sim_gps is used to select between pwm5, fault2, and t3 defaults to a5 gpioa6 fault0 18 defaults to a6 gpioa7 reset 15 defaults to reset gpiob0 sclk / scl 21 sim register sim_gps is used to select between sclk and scl defaults to b0 gpiob1 ss / sda 2 sim register sim_gps is used to select between ss and sda defaults to b1 gpiob2 miso / t2 17 sim regist er sim_gps is used to select between miso and t2 defaults to b2 gpiob3 mosi / t3 16 sim register sim_gps is used to select between mosi and t3 defaults to b3 gpiob4 t0 / clko 19 sim register sim_gps is used to select between t0 and clko defaults to b4 gpiob5 t1 / fault3 4 sim register sim_gps is used to select between t1 and fault3 defaults to b5
56f8013 technical data, rev. 2 86 freescale semiconductor preliminary 8.3 reset values tables 4-16 through 4-19 detail registers for the 56f8013; figures 8-1 through 8-4 summarize register maps and reset values. gpiob6 rxd / sda / clkin 1 sim register sim_gps is used to select between rxd and sda. clkin functionality is enabled using the pll control register within the occs block. defaults to b6 gpiob7 txd / scl 3 sim register sim_gps is used to select between txd and scl defaults to b7 gpioc0 ana0 12 defaults to ana0 gpioc1 ana1 11 defaults to ana1 gpioc2 ana2 / v refh 10 defaults to ana2 gpioc3 ana3 not bonded out in 56f8013 defaults to ana3 gpioc4 anb0 5 defaults to anb0 gpioc5 anb1 6 defaults to anb1 gpioc6 anb2 / v refl 7 defaults to anb2 gpioc7 anb3 not bonded out in 56f8013 defaults to anb3 gpiod0 tdi 30 defaults to tdi gpiod1 tdo 32 defaults to tdo gpiod2 tck 14 defaults to tck gpiod3 tms 31 defaults to tms table 8-2 gpio external signals map (continued) pins in shaded rows are not available in 56f8013 gpio function peripheral function lqfp package pin notes
reset values 56f8013 technical data, rev. 2 freescale semiconductor 87 preliminary figure 8-1 gpioa register map summary add. offset register acronym 151413121110987654321 0 $0 gpioa_pupen r 0 0 0 0 0 0 0 0 pu w rs 0 0 0 0 0 0 0 0 11111111 $1 gpioa_data r 0 0 0 0 0 0 0 0 d w rs 0 0 0 0 0 0 0 0 01111111 $2 gpioa_ddir r 0 0 0 0 0 0 0 0 dd w rs 0 0 0 0 0 0 0 0 00000000 $3 gpioa_peren r 0 0 0 0 0 0 0 0 pe w rs 0 0 0 0 0 0 0 0 10000000 $4 gpioa_iassrt r 0 0 0 0 0 0 0 0 ia w rs 0 0 0 0 0 0 0 0 00000000 $5 gpioa_ien r 0 0 0 0 0 0 0 0 ien w rs 0 0 0 0 0 0 0 0 00000000 $6 gpioa_iepol r 0 0 0 0 0 0 0 0 iepol w rs 0 0 0 0 0 0 0 0 00000000 $7 gpioa_ipend r 0 0 0 0 0 0 0 0 ipr w rs 0 0 0 0 0 0 0 0 00000000 $8 gpioa_iedge r 0 0 0 0 0 0 0 0 ies w rs 0 0 0 0 0 0 0 0 00000000 $9 gpioa_ppoutm r 0 0 0 0 0 0 0 0 oen w rs 0 0 0 0 0 0 0 0 11111111 $a gpioa_rdata r 0 0 0 0 0 0 0 0 raw data w rs x x x x x x x x xxxxxxxx $b gpioa_drive r 0 0 0 0 0 0 0 0 drive w rs 0 0 0 0 0 0 0 0 00000000 r 0 read as 0 w reserved rs reset
56f8013 technical data, rev. 2 88 freescale semiconductor preliminary figure 8-2 gpiob register map summary add. offset register acronym 151413121110987654321 0 $0 gpiob_pupen r 0 0 0 0 0 0 0 0 pu w rs 0 0 0 0 0 0 0 0 11111111 $1 gpiob_data r 0 0 0 0 0 0 0 0 d w rs 0 0 0 0 0 0 0 0 11111111 $2 gpiob_ddir r 0 0 0 0 0 0 0 0 dd w rs 0 0 0 0 0 0 0 0 00000000 $3 gpiob_peren r 0 0 0 0 0 0 0 0 pe w rs 0 0 0 0 0 0 0 0 00000000 $4 gpiob_iassrt r 0 0 0 0 0 0 0 0 ia w rs 0 0 0 0 0 0 0 0 00000000 $5 gpiob_ien r 0 0 0 0 0 0 0 0 ien w rs 0 0 0 0 0 0 0 0 00000000 $6 gpiob_iepol r 0 0 0 0 0 0 0 0 iepol w rs 0 0 0 0 0 0 0 0 00000000 $7 gpiob_ipend r 0 0 0 0 0 0 0 0 ipr w rs 0 0 0 0 0 0 0 0 00000000 $8 gpiob_iedge r 0 0 0 0 0 0 0 0 ies w rs 0 0 0 0 0 0 0 0 00000000 $9 gpiob_ppoutm r 0 0 0 0 0 0 0 0 oen w rs 0 0 0 0 0 0 0 0 11111111 $a gpiob_rdata r 0 0 0 0 0 0 0 0 raw data w rs x x x x x x x x xxxxxxxx $b gpiob_drive r 0 0 0 0 0 0 0 0 drive w rs 0 0 0 0 0 0 0 0 00000000 r 0 read as 0 w reserved rs reset
reset values 56f8013 technical data, rev. 2 freescale semiconductor 89 preliminary figure 8-3 gpioc register map summary add. offset register acronym 151413121110987654321 0 $0 gpioc_pupen r 0 0 0 0 0 0 0 0 pu w rs 0 0 0 0 0 0 0 0 11111111 $1 gpioc_data r 0 0 0 0 0 0 0 0 d w rs 0 0 0 0 0 0 0 0 00000000 $2 gpioc_ddir r 0 0 0 0 0 0 0 0 dd w rs 0 0 0 0 0 0 0 0 00000000 $3 gpioc_peren r 0 0 0 0 0 0 0 0 pe w rs 0 0 0 0 0 0 0 0 11111111 $4 gpioc_iassrt r 0 0 0 0 0 0 0 0 ia w rs 0 0 0 0 0 0 0 0 00000000 $5 gpioc_ien r 0 0 0 0 0 0 0 0 ien w rs 0 0 0 0 0 0 0 0 00000000 $6 gpioc_iepol r 0 0 0 0 0 0 0 0 iepol w rs 0 0 0 0 0 0 0 0 00000000 $7 gpioc_ipend r 0 0 0 0 0 0 0 0 ipr w rs 0 0 0 0 0 0 0 0 00000000 $8 gpioc_iedge r 0 0 0 0 0 0 0 0 ies w rs 0 0 0 0 0 0 0 0 00000000 $9 gpioc_ppoutm r 0 0 0 0 0 0 0 0 oen w rs 0 0 0 0 0 0 0 0 11111111 $a gpioc_rdata r 0 0 0 0 0 0 0 0 raw data w rs x x x x x x x x xxxxxxxx $b gpioc_drive r 0 0 0 0 0 0 0 0 drive w rs 0 0 0 0 0 0 0 0 00000000 r 0 read as 0 w reserved rs reset
56f8013 technical data, rev. 2 90 freescale semiconductor preliminary figure 8-4 gpiod register map summary add. offset register acronym 151413121110987654321 0 $0 gpiod_pupen r 0 0 0 0 0 0 0 0 0 0 0 0 pu w rs 0 0 0 0 0 0 0 0 0 0 0 0 1111 $1 gpiod_data r 0 0 0 0 0 0 0 0 0 0 0 0 d w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $2 gpiod_ddir r 0 0 0 0 0 0 0 0 0 0 0 0 dd w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $3 gpiod_peren r 0 0 0 0 0 0 0 0 0 0 0 0 pe w rs 0 0 0 0 0 0 0 0 0 0 0 0 1111 $4 gpiod_iassrt r 0 0 0 0 0 0 0 0 0 0 0 0 ia w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $5 gpiod_ien r 0 0 0 0 0 0 0 0 0 0 0 0 ien w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $6 gpiod_iepol r 0 0 0 0 0 0 0 0 0 0 0 0 iepol w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $7 gpiod_ipend r 0 0 0 0 0 0 0 0 0 0 0 0 ipr w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $8 gpiod_iedge r 0 0 0 0 0 0 0 0 0 0 0 0 ies w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 $9 gpiod_ppoutm r 0 0 0 0 0 0 0 0 0 0 0 0 oen w rs 0 0 0 0 0 0 0 0 0 0 0 0 1111 $a gpiod_rdata r 0 0 0 0 0 0 0 0 0 0 0 0 raw data w rs x x x x x x x x x x x x xxxx $b gpiod_drive r 0 0 0 0 0 0 0 0 0 0 0 0 drive w rs 0 0 0 0 0 0 0 0 0 0 0 0 0000 r 0 read as 0 w reserved rs reset
56f8013 information 56f8013 technical data, rev. 2 freescale semiconductor 91 preliminary part 9 joint test action group (jtag) 9.1 56f8013 information please contact your freescale sales representative or authorized di stributor for device/package-specific bsdl information. the trst pin is not available in this package. the pin is tied to v dd in the package. the jtag state machine is reset during por and can also be reset via a soft reset by holding tms high for five rising edges of tck, as described in the 56f8000 peripheral user manual . part 10 specifications 10.1 general characteristics the 56f8013 is fabricated in high-density cmos with 5v-tolerant ttl-compatible digital inputs. the term ?5v-tolerant? refers to the capability of an i/o pin, built on a 3.3v-c ompatible process technology, to withstand a voltage up to 5.5v without damaging th e device. many systems have a mixture of devices designed for 3.3v and 5v power supplies. in such systems, a bus may carry both 3.3v- and 5v-compatible i/o voltage levels (a standard 3.3v i/o is designed to receive a maximum voltage of 3.3v 10% during normal operation without causing damage). this 5v-tol erant capability therefore offers the power savings of 3.3v i/o levels, combined with the abil ity to receive 5v levels without damage. absolute maximum ratings in table 10-1 are stress ratings only, and func tional operation at the maximum is not guaranteed. stress beyond these ratings may affect device reliability or cause permanent damage to the device. unless otherwise stated, all specifications within this chapter apply over the temperature range of -40oc to 105oc ambient temperature over the following supply ranges: v ss =v ss a=0v,v dd =v dda = 3.0?3.6v, cl < 50pf, f op = 32mhz caution this device contains protective circuitry to guard against damage due to high static voltage or electrical fields. however, normal precautions are advised to avoid application of any voltages higher than maximum-rated voltages to this high-impedance circuit. reliability of operation is enhanced if unused inputs are tied to an appropriate voltage level.
56f8013 technical data, rev. 2 92 freescale semiconductor preliminary default mode pin group 1: gpio, tdi, tdo, tms, tck pin group 2: reset , gpioa7 pin group 3: adc analog inputs table 10-1 absolute maximum ratings (v ss = 0v, v ssa = 0v) characteristic symbol notes min max unit supply voltage range v dd -0.3 4.0 v analog supply voltage range v dda - 0.3 4.0 v adc high voltage reference v refh - 0.3 4.0 v input voltage range (digital inputs) v in pin groups 1, 2 - 0.3 6.0 v input voltage range (adc inputs) v ina pin group 3 - 0.3 4.0 v input clamp current, per pin (v in < 0) 1 1. continuous input current per pin is -2 ma v ic --20ma output clamp current, per pin (v o < 0) 1 v oc --20ma output voltage range (normal push-pull mode) v out pin group 1 -0.3 4.0 v output voltage range (open drain mode) v outod pin groups 1, 2 -0.3 6.0 v ambient temperature t a -40 105 c storage temperature range t s -55 150 c
general characteristics 56f8013 technical data, rev. 2 freescale semiconductor 93 preliminary 10.1.1 electrostatic discharge (esd) model 1. junction temperature is a function of die size, on-chip power dissipation, package thermal resistance, mounting site (board) temperature, ambient temperature, air flow, power dissipation of other components on the board, and board thermal resistance. 2. per semi g38-87 and jedec jesd51-2 with the single layer board horizontal. 3. per jedec jesc51-6 with the board horizontal. 4. thermal resistance between the die and the printed circuit board per jedec jesd51-8. board temperature is measured on the top surface of the board near the package. 5. thermal resistance between the die and the case top surface as measured by the cold plate method (mil spec-883 method 1012.1). 6. thermal characterization parameter indicating the temperature difference between package top and the junction temperature pe r jedec jesd51-2. when greek letters are not available, the thermal characterization parameter is written as psi-jt. 7. see section 12.1 for more details on thermal design considerations. table 10-2 56f8013 esd protection characteristic min typ max unit esd for human body model (hbm) 2000 ? ? v esd for machine model (mm) 200 ? ? v esd for charge device model (cdm) 750 ? ? v table 10-3 lqfp package thermal characteristics 6 characteristic comments symbol value (lqfp) unit notes junction to ambient natural convection single layer board (1s) r ja 74 c/w 1,2 junction to ambient natural convection four layer board (2s2p) r jma 50 c/w 1,3 junction to ambient (@200 ft/min) single layer board (1s) r jma 67 c/w 1,3 junction to ambient (@200 ft/min) four layer board (2s2p) r jma 46 c/w 1,3 junction to board r jb 23 c/w 4 junction to case r jc 20 c/w 5 junction to package top natural convection jt 4c/w6
56f8013 technical data, rev. 2 94 freescale semiconductor preliminary note: total chip source or sink current cannot exceed 50ma default mode pin group 1: gpio, tdi, tdo, tms, tck pin group 2: reset , gpioa7 pin group 3: adc analog inputs table 10-4 recommended operating conditions (v refl = 0v, v ssa = 0v, v ss = 0v ) characteristic symbol notes min typ max unit supply voltage v dd 33.33.6 v adc supply voltage v dda 33.33.6 v adc high voltage reference v refh 3?v dda v device clock frequency using relaxation oscillator using external clock source fsysclk 8 0 ? 32 32 mhz input voltage high (digital inputs) v ih pin groups 1, 2 2 ? 5.5 v input voltage low (digital inputs) v il pin groups 1, 2 -0.3 ? 0.8 v output source current high (at v oh min.) when programmed for low drive strength when programmed for high drive strength i oh pin group 1 pin group 1 ? ? ? ? -4 -8 ma output source current low (at v ol max.) when programmed for low drive strength when programmed for high drive strength i ol pin groups 1, 2 pin groups 1, 2 ? ? ? ? 4 8 ma ambient operating temperature t a -40 ? 105 - (r ja x p d ) c flash endurance (program erase cycles) n f t a = -40c to 105c 10,000 ? ? cycles flash data retention t r t j <= 70c avg 15 ? ? years
dc electrical characteristics 56f8013 technical data, rev. 2 freescale semiconductor 95 preliminary 10.2 dc electrical characteristics (a) see figure 10-1 default mode pin group 1: gpio, tdi, tdo, tms, tck pin group 2: reset , gpioa7 pin group 3: adc analog inputs figure 10-1 i in /i oz vs. voltage (typical) table 10-5 dc electrical characteristics at recommended operating conditions characteristic symbol notes min typ max unit test conditions output voltage high v oh pin group 1 2.4 ? ? v i oh = i ohmax output voltage low v ol pin groups 1, 2 ? ? 0.4 v i ol = i olmax digital input current high (a) pull-up enabled or disabled i ih pin groups 1, 2 ? 0 +/- 2.5 av in = 2.4v to 5.5v adc input current high i iha pin group 3 ? 0 +/- 10 av ina = v dda digital input current low (a) pull-up enabled pull-up disabled i il pin groups 1, 2 -15 ? -30 -60 +/- 2.5 av in = 0v adc input current low i ila pin group 3 ? 0 +/- 10 av ina = 0v output current high impedance state (a) i oz pin groups 1, 2 ? 0 +/- 2.5 av out = 2.4v to 5.5v or 0v schmitt trigger input hysteresis v hys pin groups 1, 2 ? 0.35 ? v ? input capacitance c in ?10 ? pf ? output capacitance c out ?10 ? pf ? 2.0 0.0 - 2.0 - 4.0 - 6.0 - 8.0 - 10.0 0.0 0.5 1.0 1.5 2.0 2.5 3.0 6.0 3.5 4.0 4.5 5.0 5.5 a volt
56f8013 technical data, rev. 2 96 freescale semiconductor preliminary table 10-6 current consumption per power supply pin (typical) mode conditions i dd 1 1. no output switching all ports configured as inputs all inputs low no dc loads i dda run 32mhz device clock relaxation oscillator on pll powered on continuous mac instructions with fetches from program flash all peripheral modules enabled. tmr and pwm using 1x clock adc powered on and clocked 42ma 13.5ma wait 32mhz device clock relaxation oscillator on pll powered on core halted all peripheral modules enabled. tmr and pwm using 1x clock adc powered off 17ma 0 a stop 8mhz device clock relaxation oscillator on pll powered off all peripheral module and core clocks are off adc powered off 5ma 0 a standby 100khz device clock relaxation oscillator in standby mode pll powered off all peripheral module and core clocks are off adc in standby mode voltage regulator in standby mode 210 a400 a standby > stop 100khz device clock relaxation oscillator in standby mode pll powered off all peripheral module and core clocks are off adc powered off voltage regulator in standby mode 210 a0 a powerdown device clock is off relaxation oscillator powered off pll powered off all peripheral module and core clocks are off adc powered off voltage regulator in standby mode 160 a0 a
dc electrical characteristics 56f8013 technical data, rev. 2 freescale semiconductor 97 preliminary 10.2.1 voltage regulator specifications the 56f8013 has two on-chip regulators. one supplies th e pll and relaxation oscillator. it has no external pins and therefore has no external characteristics which must be guaranteed (other than proper operation of the device). the second regulator supplies appr oximately 2.5v to the 56f8013?s core logic. this regulator requires an external 4.4 f, or greater, capacitor for pr oper operation. ceramic and tantalum capacitors tend to provide better performance tolerances. the output vo ltage can be measured directly on the v cap pin. the specifications for this regulator are shown in table 10-8 . table 10-7 power-on rese t low-voltage parameters characteristic symbol min typ max unit low-voltage interrupt for 3.3v supply 1 1. when v dd drops below v ei3.3 maximum value, an interrupt is generated. v ei3.3 2.65 2.7 ? v low-voltage interrupt for 2.5v supply 2 2. when v dd drops below v ei32.5 maximum value, an interrupt is generated. v e12.5 2.05 2.15 ? v low-voltage interrupt recovery hysteresis v eih ?50?mv power-on reset 3 3. power-on reset occurs whenever the internally regulated 2.5v digital supply drops below 1.8v. while power is ramping up, this signal remains active for as long as the internal 2.5v is below 2.15v or the 3.3v 1/o voltage is below 2.7v, no matter how long the ramp-up rate is. the internally regulated voltage is typically 100mv less than v dd during ramp-up until 2.5v is reached, at which time it self-regulates. por ? 1.8 1.9 v table 10-8. regulator parameters characteristic symbol min typical max unit input voltage v in 3.0 ? 3.6 v output voltage v out 2.25 2.5 2.75 v short circuit current i ss ?450650 ma short circuit tolerance (output shorted to ground) t rsc ? ? 30 minutes
56f8013 technical data, rev. 2 98 freescale semiconductor preliminary 10.3 ac electrical characteristics tests are conducted using the input levels specified in table 10-5 . unless otherwise specified, propagation delays are measured from the 50% to th e 50% point, and rise and fall times are measured between the 10% and 90% points, as shown in figure 10-2 . figure 10-2 input signal measurement references figure 10-3 shows the definitions of the following signal states: ? active state, when a bus or signal is driven, and enters a low impedance state ? tri-stated, when a bus or signal is placed in a high impedance state ? data valid state, when a signal level has reached v ol or v oh ? data invalid state, when a signal level is in transition between v ol and v oh figure 10-3 signal states 10.4 flash memory characteristics table 10-9 flash timing parameters characteristic symbol min typ max unit program time 1 1. there is additional overhead which is part of the programming sequence. see the 56f8000 peripheral user manual for details. program time is per 16-bit word in flash memory. two words at a time can be programmed within the pro- gram flash module, as it contains two interleaved memories. t prog 20 ? 40 s erase time 2 2. specifies page erase time. there are 512 bytes per page in the program flash memory. the program flash module uses two interleaved flash memories, increasing the effective page size to 1024 bytes. t erase 20 ? ? ms mass erase time t me 100 ? ? ms v ih v il fall time input signal note: the midpoint is v il + (v ih ? v il )/2. midpoint1 low high 90% 50% 10% rise time data invalid state data1 data2 valid data tri-stated data3 valid data2 data3 data1 valid data active data active
external clock operation timing 56f8013 technical data, rev. 2 freescale semiconductor 99 preliminary 10.5 external clock operation timing figure 10-4 external clock timing 10.6 phase locked loop timing table 10-10 external clock operation timing requirements 1 1. parameters listed are guaranteed by design. characteristic symbol min typ max unit frequency of operation (external clock driver) 2 2. see figure 10-4 for details on using the recommended connection of an external clock driver. f osc 488mhz clock pulse width 3 3. the high or low pulse width must be no smaller than 6.25ns or the chip may not function. t pw 6.25 ? ? ns external clock input rise time 4 4. external clock input rise time is measured from 10% to 90%. t rise ?? 3ns external clock input fall time 5 5. external clock input fall time is measured from 90% to 10%. t fall ?? 3ns table 10-11 pll timing characteristic symbol min typ max unit internal reference relaxation oscillator frequency for the pll f rosc ?8?mhz pll output frequency 1 (24 x reference frequency) 1. the core system clock will operate at 1/6 of the pll output frequency. f op ?192?mhz pll lock time 2 2. this is the time required after the pll is enabled to ensure reliable operation. t lock ?.1 1ms cycle-to-cycle jitter t jitterpll 350 ps external clock v ih v il note: the midpoint is v il + (v ih ? v il )/2. 90% 50% 10% 90% 50% 10% t pw t pw t fall t rise
56f8013 technical data, rev. 2 100 freescale semiconductor preliminary 10.7 relaxation oscillator timing figure 10-5 relaxation oscillator temperature variation (typical) table 10-12 relaxation oscillator timing characteristic symbol minimum typical maximum unit relaxation oscillator output frequency 1 normal mode standby mode 1. output frequency after application of trim value, at 25c. f op ? 8 400 ? mhz khz relaxation oscillator stabilization time 2 2. this is the time required from standby to normal mode transition. t roscs ?1 3s cycle-to-cycle jitter. this is measured on the clko signal (programmed prescaler_clock) over 264 clocks 3 3. j a is required to meet sci requirements. t jitterrosc ?400 ps minimum tuning step size .08 % maximum tuning step size 40 % variation over temperature -40 c to 105 c 4 4. see figure 10-5 . ? +3.0 to -3.0 % 8.05 8 7.95 7.9 7.85 7.8 175 -25 -50 0 50 75 100 125 150 25 degrees c (junction) mhz
reset, stop, wait, mode select, and interrupt timing 56f8013 technical data, rev. 2 freescale semiconductor 101 preliminary 10.8 reset, stop, wait, mode select, and interrupt timing note: all the address and data bus es described here are internal. figure 10-6 gpio interrupt timing (negative edge-sensitive) table 10-13 reset, stop, wait, mode select, and interrupt timing 1,2 1. in the formulas, t = clock cycle and t osc = oscillator clock cycle. for an operating frequency of 32mhz, t = 31.25ns. at 8mhz (used during reset and stop modes), t = 125ns. 2. parameters listed are guaranteed by design. characteristic symbol typical min typical max unit see figure minimum reset assertion duration t ra 4t ? ns minimum gpio pin assertion for interrupt t iw 2t ? ns 10-6 reset deassertion to first address fetch 3 3. during power-on reset, it is possible to use the 56f8013 internal reset stretching circuitry to extend this period to 2^21t. t rda 96t osc + 64t 97t osc + 65t ns delay from interrupt assertion to fetch of first instruction (exiting stop) t if ?6tns gpio pin (input) t iw
56f8013 technical data, rev. 2 102 freescale semiconductor preliminary 10.9 serial peripheral interface (spi) timing table 10-14 spi timing 1 1. parameters listed are guaranteed by design. characteristic symbol min max unit see figure cycle time master slave t c 125 62.5 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 enable lead time master slave t eld ? 31 ? ? ns ns 10-10 enable lag time master slave t elg ? 125 ? ? ns ns 10-10 clock (sck) high time master slave t ch 50 31 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 clock (sck) low time master slave t cl 50 31 ? ? ns ns 10-10 data set-up time required for inputs master slave t ds 20 0 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 data hold time required for inputs master slave t dh 0 2 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 access time (time to data active from high-impedance state) slave t a 4.8 15 ns 10-10 disable time (hold time to high-impedance state) slave t d 3.7 15.2 ns 10-10 data valid for outputs master slave (after enable edge) t dv ? ? 4.5 20.4 ns ns 10-7 , 10-8 , 10-9 , 10-10 data invalid master slave t di 0 0 ? ? ns ns 10-7 , 10-8 , 10-9 , 10-10 rise time master slave t r ? ? 11.5 10.0 ns ns 10-7 , 10-8 , 10-9 , 10-10 fall time master slave t f ? ? 9.7 9.0 ns ns 10-7 , 10-8 , 10-9 , 10-10
serial peripheral interface (spi) timing 56f8013 technical data, rev. 2 freescale semiconductor 103 preliminary 1 figure 10-7 spi master timing (cpha = 0) figure 10-8 spi master timing (cpha = 1) sclk (cpol = 0) (output) sclk (cpol = 1) (output) miso (input) mosi (output) msb in bits 14?1 lsb in t f t c t cl t cl t r t r t f t ds t dh t ch t di t dv t di (ref) t r master msb out bits 14?1 master lsb out ss (input) t ch ss is held high on master t f sclk (cpol = 0) (output) sclk (cpol = 1) (output) miso (input) mosi (output) msb in bits 14?1 lsb in t r t c t cl t cl t f t ch t dv (ref) t dv t di (ref) t r t f master msb out bits 14? 1 master lsb out ss (input) t ch ss is held high on master t ds t dh t di t r t f
56f8013 technical data, rev. 2 104 freescale semiconductor preliminary figure 10-9 spi slave timing (cpha = 0) figure 10-10 spi slave timing (cpha = 1) sclk (cpol = 0) (input) sclk (cpol = 1) (input) miso (output) mosi (input) slave msb out bits 14?1 t c t cl t cl t f t ch t di msb in bits 14?1 lsb in ss (input) t ch t dh t r t elg t eld t f slave lsb out t d t a t ds t dv t di t r sclk (cpol = 0) (input) sclk (cpol = 1) (input) miso (output) mosi (input) slave msb out bits 14?1 t c t cl t cl t ch t di msb in bits 14?1 lsb in ss (input) t ch t dh t f t r slave lsb out t d t a t eld t dv t f t r t elg t dv t ds
quad timer timing 56f8013 technical data, rev. 2 freescale semiconductor 105 preliminary 10.10 quad timer timing figure 10-11 timer timing table 10-15 timer timing 1, 2 1. in the formulas listed, t = the clock cycle. for 32mhz operation, t = 31.25ns. 2. parameters listed are guaranteed by design. characteristic symbol min max unit see figure timer input period p in 2t + 6 ? ns 10-11 timer input high / low period p inhl 1t + 3 ? ns 10-11 timer output period p out 125 ? ns 10-11 timer output high / low period p outhl 50 ? ns 10-11 p out p outhl p outhl p in p inhl p inhl timer inputs timer outputs
56f8013 technical data, rev. 2 106 freescale semiconductor preliminary 10.11 serial communication interface (sci) timing figure 10-12 rxd pulse width figure 10-13 txd pulse width table 10-16 sci timing 1 1. parameters listed are guaranteed by design. characteristic symbol min max unit see figure baud rate 2 2. f max is the frequency of operation of the system clock in mhz, which is 32mhz for the 56f8013 device. br ? (f max /16) mbps ? rxd 3 pulse width 3. the rxd pin in sci0 is named rxd0 and the rxd pin in sci1 is named rxd1. rxd pw 0.965/br 1.04/br ns 10-12 txd 4 pulse width 4. the txd pin in sci0 is named txd0 and the txd pin in sci1 is named txd1. txd pw 0.965/br 1.04/br ns 10-13 lin slave mode deviation of slave node clock from nominal clock rate before synchronization f tol_unsynch -14 14 % deviation of slave node clock relative to the master node clock after synchronization f tol_synch -2 2 % minimum break character length t break 13 master node bit periods 11 slave node bit periods rxd pw rxd receive data pin (input) txd pw txd receive data pin (input)
inter-integrated circuit interface (i2c) timing 56f8013 technical data, rev. 2 freescale semiconductor 107 preliminary 10.12 inter-integrated circuit interface (i 2 c) timing table 10-17 i 2 c timing characteristic symbol standard mode fast mode unit minimum maximum minimum maximum scl clock frequency f scl 01000400khz hold time (repeated ) start condition. after this period, the first clock pulse is generated. t hd; sta 4.0 0.6 s low period of the scl clock t low 4.7 1.25 s high period of the scl clock t high 4.0 0.6 s set-up time for a repeated start condition t su; sta 4.7 0.6 s data hold time for i 2 c bus devices t hd; dat 0 1 1. a device must internally provide a hold time of at least 300ns for the sda signal (referred to the v ih min of the scl signal) to bridge the undefined region of the falling edge of scl. 3.45 2 2. the maximum t hd; dat has only to be met if the device does not stretch the low period (t low ) of the scl signal. 0 1 0.9 2 s data set-up time t su; dat 250 100 3 3. a fast mode i 2 c bus device can be used in a standard mode i 2 c bus system, but the requirement t su; dat > = 250ns must then be met. this will automatically be the case if the device does not stretch the low period of the scl signal. if such a device does stretch the low period of the scl signal, it must output the next data bit to the sda line t rmax + t su; dat = 1000 + 250 = 1250ns (according to the standard mode i 2 c bus specification) before the scl line is released. ns rise time of both sda and scl signals t r 1000 2 +0.1c b 4 4. c b = total capacitance of the one bus line in pf. 300 ns fall time of both sda and scl signals t f 300 2 +0.1c b 4 300 ns set-up time for stop condition t su; sto 4.0 0.6 s bus free time between stop and start condition t buf 4.7 1.3 s pulse width of spikes that must be suppressed by the input filter t sp n/a n/a 0.0 50 ns
56f8013 technical data, rev. 2 108 freescale semiconductor preliminary figure 10-14 timing definition for fast and standard mode devices on the i 2 c bus 10.13 jtag timing figure 10-15 test clock input timing diagram table 10-18 jtag timing characteristic symbol min max unit see figure tck frequency of operation 1 1. tck frequency of operation must be less than 1/8 the processor rate. f op dc sys_clk/8 mhz 10-15 tck clock pulse width t pw 50 ? ns 10-15 tms, tdi data set-up time t ds 5?ns 10-16 tms, tdi data hold time t dh 5?ns 10-16 tck low to tdo data valid t dv ?30ns 10-16 tck low to tdo tri-state t ts ?30ns 10-16 sda scl t hd; sta t hd; dat t low t su; dat t high t su; sta br p s s t hd; sta t sp t su; sto t buf tck (input) v m v il v m = v il + (v ih ? v il )/2 t pw 1/f op t pw v m v ih
analog-to-digital converter (adc) parameters 56f8013 technical data, rev. 2 freescale semiconductor 109 preliminary figure 10-16 test access port timing diagram 10.14 analog-to-digital converter (adc) parameters table 10-19 adc parameters 1 characteristic symbol min typ max unit input voltages v adin v refl ?v refh v resolution r es 12 ? 12 bits integral non-linearity 2 (full input signal range) inl ? +/- 3 +/- 4 lsb 3 integral non-linearity 4 (10% to 90% input signal range) inl ? +/- 2 +/- 3 lsb 3 differential non-linearity dnl ? -1 < dnl < +1 < +1 lsb 3 monotonicity guaranteed adc internal clock f adic 0.1 ? 5.33 mhz conversion range r ad v refl ?v refh v adc power-up time 5 t adpu ?613 t aic cycles 6 recovery from auto standby t rec ?0 1 t aic cycles 6 conversion time t adc ?6? t aic cycles 6 sample time t ads ?1? t aic cycles 6 input capacitance c adi ?see figure 10-17 ?pf input impedance x in see figure 10-17 ?ohms input injection current 7 , per pin i adi ?? 3ma input data valid output data valid t ds t dh t dv t ts tck (input) tdi (input) tdo (output) tdo (output ) tms
56f8013 technical data, rev. 2 110 freescale semiconductor preliminary v refh current i vrefh ?0? a offset voltage internal ref v offset ? +/- 8 +/- 15 mv gain error (transfer gain) e gain .99 1 1.01 ? offset voltage external ref v offset ? +/- 3 tbd mv signal-to-noise ratio snr tbd 62 to 65.7 db total harmonic distortion thd tbd 63 to 68 db spurious free dynamic range sfdr tbd 67 to 70.3 db signal-to-noise plus distortion sinad tbd 61 to 63.9 db effective number of bits enob 9.1 9.6 to 10.4 bits 1. all measurements were made at v dd = 3.3v, v refh = 3.3v, and v refl = ground 2. inl measured from v in = v refl to v in = v refh 3. lsb = least significant bit 4. inl measure from v in = 0.1 v refh to v in = 0.9v refh 5. includes power-up of adc and v ref 6. adc clock cycles 7. the current that can be injected or sourced from an unselected adc signal input without impacting the performance of the adc. table 10-19 adc parameters 1 (continued) characteristic symbol min typ max unit
equivalent circuit for adc inputs 56f8013 technical data, rev. 2 freescale semiconductor 111 preliminary 10.15 equivalent circuit for adc inputs figure 10-17 illustrates the adc input circuit during samp le and hold. s1 and s2 are always open/closed at the same time that s3 is closed/open. when s1/s2 are closed & s3 is open, one input of the sample and hold circuit moves to (v refh -v refl )/2, while the other charges to the analog input voltage. when the switches are flipped, the charge on c1 and c2 are av eraged via s3, with the result that a single-ended analog input is switched to a differential voltage centered about (v refh -v refl )/2. the switches switch on every cycle of the adc clock (open one-half adc clock, closed one-half adc clock). note that there are additional capacitances associated with the anal og input pad, routing, etc., but these do not filter into the s/h output voltage, as s1 provides is olation during the charge-sharing phase. one aspect of this circuit is that there is an on-goi ng input current, which is a function of the analog input voltage, v ref and the adc clock frequency. 1. parasitic capacitance due to package, pin-to-pin and pin-to-package base coupling; 1.8pf 2. parasitic capacitance due to the chip bond pad, esd protection devices and signal routing; 2.04pf 3. equivalent resistance for the channel select mux; 100 ohms 4. sampling capacitor at the sample and hold circuit. capa citor c1 is normally disconnected from the input and is only connected to it at sampling time; 1.4pf 5. equivalent input impedance, when the the input is selected = figure 10-17 equivalent circuit for a/d loading 1 2 3 analog input 4 s1 s2 s3 c1 c2 s/h c1 = c2 = 1pf (v refh - v refl ) / 2 125 ? esd resistor 8pf noise damping capacitor 1 (adc clock rate) x 1.4 x 10 -12
56f8013 technical data, rev. 2 112 freescale semiconductor preliminary 10.16 power consumption see section 10.1 for a list of idd requirements for the 56f 8013. this section provi des additional detail which can be used to optimize power consumption for a given application. power consumption is given by the following equation: a, the internal [static component], is comprised of the dc bias currents for the oscillator, leakage currents, pll, and voltage references. these sources operate independently of proc essor state or operating frequency. b, the internal [state-dependent component], re flects the supply current required by certain on-chip resources only when those resources are in use. these include ram, flash memory and the adcs. c, the internal [dynamic component], is classic c*v 2 *f cmos power dissipation corresponding to the 56800e core and standard cell logic. d, the external [dynamic component], reflects power di ssipated on-chip as a result of capacitive loading on the external pins of the chip. this is also commonly described as c*v 2 *f, although simulations on two of the i/o cell types used on the 56800e reveal that the power-versus-load curve does have a non-zero y-intercept. power due to capacitive loading on output pins is (first order) a function of the capacitive load and frequency at which the outputs change. table 10-20 provides coefficients for calculating power dissipated in the i/o cells as a function of capacitive load. in these cases: totalpower = ((intercept + slope*cload)*frequency/10mhz) total power = a: internal [static component] +b: internal [state-dependent component] +c: internal [dynamic component] +d: external [dynamic component] +e: external [static] table 10-20 i/o loading coefficients at 10mhz intercept slope 8ma drive 1.3 0.11mw / pf 4ma drive 1.15mw 0.11mw / pf
power consumption 56f8013 technical data, rev. 2 freescale semiconductor 113 preliminary where: ? summation is performed over all output pins with capacitive loads ? totalpower is expressed in mw ? cload is expressed in pf because of the low duty cycle on most device pins, power dissipation due to capacitive loads was found to be fairly low when averaged over a period of time. e, the external [static component], reflects the effe cts of placing resistive loads on the outputs of the device. sum the total of all v 2 /r or iv to arrive at the resistive load contribution to power. assume v = 0.5 for the purposes of these rough calculations. for instance, if there is a total of eight pwm outputs driving 10ma into leds, then p = 8*.5*.01 = 40mw. in previous discussions, power consumption due to pa rasitics associated with pure input pins is ignored, as it is assumed to be negligible.
56f8013 technical data, rev. 2 114 freescale semiconductor preliminary part 11 packaging 11.1 56f8013 package and pin-out information this section contains package and pin-out information for the 56f8013. this device comes in a 32-pin low-profile quad flat pack (lqfp). figure 11-1 shows the package outline for the 32-pin lqfp, figure 11-2 shows the mechanical parameters for this package, and table 11-1 lists the pin-out for the 32-pin lqfp. figure 11-1 top view, 56f8013 32-pin lqfp package pin 1 orientation mark pin 25 pin 1 7 56f8013 pin 9 gpiob6 / rxd/sda/clkin gpiob1 / ss /sda gpiob7 / txd/scl gpiob5 / t1/fault3 anb0 / gpioc4 anb1 / gpioc5 anb2 / v refl /gpioc6 v dda gpiob2 / miso/t2 gpioa6 / fault0 gpiob4 / t0/clko gpioa5 / pwm5/fault2/t3 gpiob0 / sclk/scl gpioa4 / pwm4/fault1/t2 gpioa2 / pwm2 gpioa3 / pwm3 gpioa1 / pwm1 v cap v ss_io v dd_io gpioa0 / pwm0 tdi / gpiod0 tms / gpiod3 tdo / gpiod1 v ssa ana2 / v refh / gpioc2 ana1 / gpioc1 ana0/ gpioc0 v ss_io tck / gpiod2 reset / gpioa7 gpiob3 / mosi/t3 note: alternate signals are in iltalic
56f8013 package and pin-out information 56f8013 technical data, rev. 2 freescale semiconductor 115 preliminary table 11-1 56f8013 32-pin lqfp package identification by pin number 1 1.alternate signals are in iltalic pin no. signal name pin no. signal name pin no. signal name pin no. signal name 1 gpiob6 rxd,sda,clkin 9 v ssa 17 gpiob2 miso,t2 25 v cap 2 gpiob1 ss ,sda 10 ana2 v refh ,gpioc2 18 gpioa6 fault0 26 v dd_io 3 gpiob7 txd,scl 11 ana1 gpioc1 19 gpiob4 t0,clko 27 v ss_io 4 gpiob5 t1,fault3 12 ana0 gpioc0 20 gpioa5 pwm5,fault2,t3 28 gpioa1 pwm1 5 anb0 gpioc4 13 v ss_io 21 gpiob0 sclk,scl 28 gpioa0 pwm0 6 anb1 gpioc5 14 tck gpiod2 22 gpioa4 pwm4,fault1,t2 30 tdi gpiod0 7 anb2 v refl ,gpioc6 15 reset gpioa7 23 gpioa2 pwm2 31 tms gpiod3 8 v dda 16 gpiob3 mosi,t3 24 gpioa3 pwm3 32 tdo gpiod1
56f8013 technical data, rev. 2 116 freescale semiconductor preliminary figure 11-2 56f8013 32-pin lqfp mechanical information detail y a s1 v b 1 8 9 17 25 32 ae ae p detail y base n j d f metal section ae?ae g seating plane r q w k x 0.250 (0.010) gauge plane e c h detail ad notes: 1. dimensioning and tolerancing per ansi y14.5m, 1982. 2. controlling dimension: millimeter. 3. datum plane ?ab? is located at bottom of lead and is coincident with the lead where the lead exits the plastic body at the bottom of the parting line. 4. datums ?t?, ?u?, and ?z? to be determined at datum plane ?ab?. 5. dimensions s and v to be determined at seating plane ?ac?. 6. dimensions a and b do not include mold protrusion. allowable protrusion is 0.250 (0.010) per side. dimensions a and b do include mold mismatch and are determined at datum plane ?ab?. 7. dimension d does not include dambar protrusion. dambar protrusion shall not cause the d dimension to exceed 0.520 (0.020). 8. minimum solder plate thickness shall be 0.0076 (0.0003). 9. exact shape of each corner may vary from depiction. dim a min max min max inches 7.000 bsc 0.276 bsc millimeters b 7.000 bsc 0.276 bsc c 1.400 1.600 0.055 0.063 d 0.300 0.450 0.012 0.018 e 1.350 1.450 0.053 0.057 f 0.300 0.400 0.012 0.016 g 0.800 bsc 0.031 bsc h 0.050 0.150 0.002 0.006 j 0.090 0.200 0.004 0.008 k 0.500 0.700 0.020 0.028 m 12 ref 12 ref n 0.090 0.160 0.004 0.006 p 0.400 bsc 0.016 bsc q 1 5 1 5 r 0.150 0.250 0.006 0.010 v 9.000 bsc 0.354 bsc v1 4.500 bsc 0.177 bsc detail ad a1 b1 v1 4x s 4x b1 3.500 bsc 0.138 bsc a1 3.500 bsc 0.138 bsc s 9.000 bsc 0.354 bsc s1 4.500 bsc 0.177 bsc w 0.200 ref 0.008 ref x 1.000 ref 0.039 ref 9 ?t? ?z? ?u? t?u 0.20 (0.008) z ac t?u 0.20 (0.008) z ab 0.10 (0.004) ac ?ac? ?ab? m 8x ?t?, ?u?, ?z? t?u m 0.20 (0.008) z ac
thermal design considerations 56f8013 technical data, rev. 2 freescale semiconductor 117 preliminary part 12 design considerations 12.1 thermal design considerations an estimation of the chip junction temperature, t j , can be obtained from the equation: t j = t a + (r j x p d ) where: the junction-to-ambient thermal resistance is an i ndustry-standard value that provides a quick and easy estimation of thermal performance. unfortunately, th ere are two values in common usage: the value determined on a single-layer board and the value obtai ned on a board with two planes. for packages such as the pbga, these values can be different by a factor of two. which value is closer to the application depends on the power dissipated by other components on the board. the value obtained on a single layer board is appropriate for the tightly packed printed circuit board. the value obtained on the board with the internal planes is usually appropriate if the board has low-power dissipation and the components are well separated. when a heat sink is used, the thermal resistance is expressed as the sum of a junction-to-case thermal resistance and a case-to-ambient thermal resistance: r ja = r jc + r ca where: r jc is device related and cannot be influenced by the user. the user controls the thermal environment to change the case to ambient thermal resistance, r ca . for instance, the user can change the size of the heat sink, the air flow around the device, the interface ma terial, the mounting arrangement on printed circuit board, or change the thermal dissipation on th e printed circuit board surrounding the device. to determine the junction temperature of the device in the application when heat sinks are not used, the thermal characterization parameter ( jt ) can be used to determine the junction temperature with a measurement of the temperature at the top center of the package case using the following equation: t j = t t + ( jt x p d ) where: t a = ambient temperature for the package ( o c) r j = junction-to-ambient thermal resistance ( o c/w) p d = power dissipation in the package (w) r ja = package junction-to-ambient thermal resistance (c/w) r jc = package junction-to-case thermal resistance (c/w) r ca = package case-to-ambient thermal resistance (c/w) t t = thermocouple temperature on top of package ( o c) jt = thermal characterization parameter ( o c/w) p d = power dissipation in package (w)
56f8013 technical data, rev. 2 118 freescale semiconductor preliminary the thermal characterization parameter is measured per jesd51-2 specification using a 40-gauge type t thermocouple epoxied to the top center of the pa ckage case. the thermocouple should be positioned so that the thermocouple junction rests on the package. a small amount of epoxy is placed over the thermocouple junction and over about 1mm of wire extending from the junction. the thermocouple wire is placed flat against the package case to avoid m easurement errors caused by cooling effects of the thermocouple wire. when heat sink is used, the junction temperature is determined from a thermocouple inserted at the interface between the case of the package and the interface material. a clearance slot or hole is normally required in the heat sink. minimizing the size of th e clearance is important to minimize the change in thermal performance caused by removi ng part of the thermal interface to the heat sink. because of the experimental difficulties with this technique, many engineers measure the heat sink temperature and then back-calculate the case temperature using a separa te measurement of the thermal resistance of the interface. from this case temperature, the junction temperature is determined from the junction-to-case thermal resistance. 12.2 electrical design considerations use the following list of considerations to assure correct operation of the 56f8013: ? provide a low-impedance path from the board power supply to each v dd pin on the 56f8013 and from the board ground to each v ss (gnd) pin ? the minimum bypass requirement is to place 0.01?0.1 f capacitors positioned as close as possible to the package supply pins. the recommended bypass configuration is to place one bypass capacitor on each of the v dd /v ss pairs, including v dda /v ssa. ceramic and tantalum capacitors tend to provide better tolerances. ? ensure that capacitor leads and associated printed circuit traces that connect to the chip v dd and v ss (gnd) pins are as short as possible ? bypass the v dd and v ss with approximately 100 f, plus the number of 0.1 f ceramic capacitors ? pcb trace lengths should be minimal for high-frequency signals ? consider all device loads as well as parasitic capacitance due to pcb traces when calculating capacitance. this is especially critical in systems with higher capacitive loads that could create higher transient currents in the v dd and v ss circuits. caution this device contains protective circuitry to guard against damage due to high static voltage or electrical fields. however, normal precautions are advised to avoid application of any voltages higher than maximum-rated voltages to this high-impedance circuit. reliability of operation is enhanced if unused inputs are tied to an appropriate voltage level.
electrical design considerations 56f8013 technical data, rev. 2 freescale semiconductor 119 preliminary ? take special care to minimize noise levels on the v ref , v dda and v ssa pins ? using separate power planes for v dd and v dda and separate ground planes for v ss and v ssa is recommended. connect the separate analog and digital power and ground planes as close as possible to power supply outputs. if both analog circuit and digital circuit are powered by the same power supply, it is advisable to connect a small inductor or ferrite bead in serial with both v dda and v ssa traces. ? it is highly desirable to physically separate analog components from noisy digital components by ground planes. do not place an analog trace in parallel with digital traces. it is also desirable to place an analog ground trace around an analog signal trace to isolate it from digital traces. ? because the flash memory is programmed through the jtag/eonce port, spi, sci or i 2 c, the designer should provide an interface to this port if in-circuit flash programming is desired. part 13 ordering information table 13-1 lists the pertinent information needed to pl ace an order. consult a freescale semiconductor sales office or authorized distributor to determine availability and to order parts. table 13-1 56f8013 ordering information part supply voltage package type pin count frequency (mhz) temperature range order number mc56f8013 3.0?3.6 v low-profile quad flat pack (lqfp) 32 32 -40 to + 105 c mc56f8013vfae
56f8013 technical data, rev. 2 120 freescale semiconductor preliminary part 14 appendix register acronyms are revised from previous device data sheets to provide a cleaner register description. a cross reference to legacy and revised acronyms are provided in the following table. module register name peripheral reference manual data sheet processor expert acronym memory address new acronym legacy acronym new acronym legacy acronym start end adc control register 1 ctrl1 adcr1 adc_ctrl1 adc_adcr1 adc_adcr1 0xf080 control register 2 ctrl2 adcr2 adc_ctrl2 adc_adcr2 adc_adcr2 0xf081 zero crossing control register zxctrl adzcc adc_zxctrl adc_adzcc adc_adzcc 0xf082 channel list register 1 clist1 adlst1 adc_clist1 adc_adlst1 adc_adlst1 0xf083 channel list register 2 clist2 adlst2 adc_clist2 adc_adlst2 adc_adlst2 0xf084 sample disable register sdis adsdis adc_sdis adc_adsdis adc_adsdis 0xf085 status register stat adstat adc_stat adc_adstat adc_adstat 0xf086 limit status register limstat adlstat adc_limstat adc_adlstat adc_adlstat 0xf087 zero crossing status register zxstat adzcstat adc_zxstat adc_adzcstat adc_adzcstat 0xf088 result registers 0-7 rslt0-7 adrslt0-7 adc_rs lt0-7 adc_adrslt0-7 adc_adrslt0-7 0xf089 0xf090 low limit registers 0-7 lolim0-7 adllmt0-7 adc_lolim0-7 adc_adllmt0-7 adc_adllmt0-7 0xf091 0xf098 high limit registers 0-7 hilim0-7 adhlmt0-7 adc_hilim0-7 adc_adhlmt0-7 adc_adhlmt0-7 0xf099 0xf0a0 offset registers 0-7 offst0-7 adofs0-7 adc_offst0-7 adc_adofs0-7 adc_adofs0-7 0xf0a1 0xf0a8 power control register pwr adpower adc_pwr adc_adpower adc_adpower 0xf0a9 voltage reference register cal adcal adc_vref adc_adcal adc_cal 0xf0aa cop control register ctrl copctl cop_ctrl copctl copctl 0xf0e0 time-out register tout copto cop_tout copto copto 0xf0e1 counter register cntr copctr cop_cntr copctr copctr 0xf0e2 i 2 c address register addr ibad i2c_addr i2c_ibad ibad 0xf0d0 frequency divider register fdiv ibfd i2c_fdiv i2c_ibfd ibfd 0xf0d1 control register ctrl ibcr i2c_ctrl i2c_ibcr ibcr 0xf0d2 status register stat ibsr i2c_stat i2c_ibsr ibsr 0xf0d3 data i./o register data ibdr i2c_data i2c_ibdr ibdr 0xf0d4 noise filter register nfilt ibnr i2c_nfilt i2c_ibnr ibnr 0xf0d5 itcn interrupt priority register 0-4 n/a n/a itcn_ipr0-4 itcn_ipr0-4 intc_ipr0-4 0xf060 0xf064 vector base address register n/a n/a itcn_vba itcn_vba intc_vba 0xf065 fast interrupt match 0 register n/a n/a itcn_fim0 itcn_fim0 intc_fim0 0xf066 fast interrupt vector address low 0 n/a n/a itcn_fival0 itcn_fival0 intc_fival0 0xf067 fast interrupt vector address high 0 n/a n/a itcn_fivah0 itcn_fivah0 intc_fivah0 0xf068 fast interrupt match 1 register n/a n/a itcn_fim1 itcn_fim1 intc_fim1 0xf069 fast interrupt vector address low 1 n/a n/a itcn_fival1 itcn_fival1 intc_fival1 0xf06a fast interrupt vector address high 1 n/a n/a itcn_fivah1 itcn_fivah1 intc_fivah1 0xf06b interrupt pending register 0 n/a n/a itcn_irqp0 itcn_irqp0 intc_irqp0 0xf06c interrupt pending register 1 n/a n/a itcn_irqp1 itcn_irqp1 intc_irqp1 0xf06d interrupt pending register 2 n/a n/a itcn_irqp2 itcn_irqp2 intc_irqp2 0xf06e interrupt control register n/a n/a itcn_ictrl itcn_ictl intc_ictl 0xf072
electrical design considerations 56f8013 technical data, rev. 2 freescale semiconductor 121 preliminary module register name peripheral reference manual data sheet processor expert acronym memory address new acronym legacy acronym new acronym legacy acronym start end occs control register ctrl pllcr occs_ctrl pllcr pllcr 0xf0f0 divide-by register divby plldb occs_divby plldb plldb 0xf0f1 status register stat pllsr occs_stat pllsr pllsr 0xf0f2 shutdown register shutdn shutdown occs _shutdn shutdown shutdown 0xf0f4 oscillator control register octrl osctl occs_octrl osctl osctl 0xf0f5 fm clock divider register clkdiv fmclkd fm_clkdiv fmclkd fmclkd 0xf400 configuration register cnfg fmcr fm_cnfg fmcr fmcr 0xf401 security high half register sechi fmsech fm_sechi fmsech fmsech 0xf403 security low half register seclo fmsecl fm_seclo fmsecl fmsecl 0xf404 protection register prot fmprot fm_prot fmprot fmprot 0xf410 user status register ustat fmustat fm_ustat fmustat fmustat 0xf413 command register cmd fmcmd fm_cmd fmcmd fmcmd 0xf414 address register addr fm addr fm_addr fmaddr 0xf416 data buffer register data fmdata fm_data fmdata 0xf418 optional data 1 register opt1 fmopt1 fm_opt1 fmopt1 fmopt1 0xf41b test array signature register tstsig fmtst_sig fm_tstsig fmtst_sig 0xf41d x = a ( n =0) b ( n =1) c ( n =2) d ( n =3) gpio pull-up enable register pupen pur gpio x _pupen gpio x _pur gpio_ x _pur 0xf1 n 0 data register data dr gpio x _data gpio x _dr gpio_ x _dr 0xf1 n 1 data direction register ddir ddr gpio x _ddir gpio x _ddr gpio_ x _ddr 0xf1 n 2 peripheral enable register peren per gpio x _peren gpio x _per gpio_ x _per 0xf1 n 3 interrupt assert register iassrt iar gpio x _iassrt gpio x _iar gpio_ x _iar 0xf1 n 4 interrupt enable register ien ienr gpio x _ien gpio x _ienr gpio_ x _ienr 0xf1 n 5 interrupt edge polarity register iepol ipolr gpio x _iepol gpio x _ipolr gpio_ x _ipolr 0xf1 n 6 interrupt pending register ipend ipr gpio x _ipend gpio x _ipr gpio_ x _ipr 0xf1 n 7 interrupt edge sensitive register iedge iesr gpio x _iedge gpio x _iesr gpio_ x _iesr 0xf1 n 8 push-pull output mode control register ppoutm ppmode gpio x _ppoutm gpio x _ppmode gpio_ x _ppmode 0xf1 n 9 raw data register rdata rawdata gpio x _rdata gpio x _rawdata gpio_ x _rawdata 0xf1 n a drive strength control register drive drive gpio x _drive gpio x _drive gpio_ x _drive 0xf1 n b ps control register ctrl lvicontrol ps_ctrl lvicontrol lvictrl 0xf160 status register stat lvistatus ps_stat lvistatus lvisr 0xf161
56f8013 technical data, rev. 2 122 freescale semiconductor preliminary module register name peripheral reference manual data sheet processor expert acronym memory address new acronym legacy acronym new acronym legacy acronym start end pwm control register ctrl pmctl pwm_ctrl pwm_pmctl pwm_pmctl 0xf040 fault control register fctrl pmfctl pwm_fctrl pwm_pmfctl pwm_pmfctl 0xf041 fault status/acknowledge regis. fltack pmfsa pwm_fltack pwm_pmfsa pwm_pmfsa 0xf042 output control register out pmout pwm_out pwm_pmout pwm_pmout 0xf043 counter register cntr pmcnt pwm_cntr pwm_pmcnt pwm_pmcnt 0xf044 counter modulo register cmod mcm pwm_cmod pwm_mcm pwm_pwmcm 0xf045 value register 0-5 val0-5 pmval0-5 pwm_val0-5 pwm_pmval0-5 pwm_pwmval0-5 0xf046 0xf04b deadtime register 0-1 dtim0-1 pmdeadtm0-1 pwm_dtim0-1 pwm_pmdeadtm0-1 pwm_pmdeadtm0-1 0xf04c 0xf04d disable mapping register 1-2 dmap1-2 pmdismap1-2 pwm_dmap1-2 pwm_pmdismap1-2 pwm_pmdismap1-2 0xf04e 0xf04f configure register cnfg pmcfg pwm_cnfg pwm_pmcfg pwm_pmcfg 0xf050 channel control register cctrl pmccr pwm_cctrl pwm_pmccr pwm_pmccr 0xf051 port register port pmport pwm_port pwm_pmport pwm_pmport 0xf052 internal correction control regis. icctrl pmiccr pwm_icctrl pwm_pmiccr pwm_pmiccr 0xf053 source control register sctrl pmsrc pwm_sctrl pwm_pmsrc pwm_pmsrc 0xf054 sci baud rate register rate scibr sci_rate sci_scibr sci_scibr 0xf0b0 control register 1 ctrl1 scicr sci_ctrl1 sci_scicr sci_scicr 0xf0b1 control register 2 ctrl2 scicr2 sci_ctrl2 sci_scicr2 sci_scicr2 0xf0b2 status register stat scisr sci_stat sci_scisr sci_scisr 0xf0b3 data register data scidr sci_data sci_scidr sci_scidr 0xf0b4 sim control register n/a n/a sim_ctrl sim_control sim_control 0xf140 reset status register n/a n/a sim_rstat sim_rststs sim_rststs 0xf141 software control register 0-3 n/a n/a sim_swc0-3 sim_scr0-3 sim_scr0-3 0xf142 0xf145 most significant half jtag id n/a n/a sim_mshid sim_msh_id sim_msh_id 0xf146 least significant half jtag id n/a n/a sim_lshid sim_lsh_id sim_lsh_id 0xf147 power control register n/a n/a sim_pwr sim_power 0xf148 clock out select register n/a n/a sim_clkout sim_clkosr sim_clkosr 0xf14a gpio peripheral select register n/a n/a sim_gps sim_gps sim_gps 0xf14b peripheral clock enable register n/a n/a sim_pce sim_pce sim_pce 0xf14c i/o short address location high n/a n/a sim_iosahi sim_isalh sim_isalh 0xf14d i/o short address location low n/a n/a sim_iosalo sim_isall sim_isall 0xf14e spi status and control register sctrl spscr spi_sctrl spi_spscr spi_scr 0xf0c0 data size and control register dsctrl spdsr spi_dsctrl spi_spdsr spi_dsr 0xf0c1 data receive register drcv spdrr spi_drcv spi_spdrr spi_drr 0xf0c2 data transmit register dxmit spdtr spi_dxmit spi_spdtr spi_dtr 0xf0c3
electrical design considerations 56f8013 technical data, rev. 2 freescale semiconductor 123 preliminary module register name peripheral reference manual data sheet processor expert acronym memory address new acronym legacy acronym new acronym legacy acronym start end n = 0, 1, 2, 3 tmr compare register 1 comp1 tmrcmp1 tmr n _comp1 tmr n _cmp1 tmr n _cmp1 0xf0 n 0 compare register 2 comp2 tmrcmp2 tmr n _comp2 tmr n _cmp2 tmr n _cmp2 0xf0 n 1 capture register capt tmrcap tmr n _capt tmr n _cap tmr n _cap 0xf0 n 2 load register load tmrload tmr n _load tmr n _load tmr n _load 0xf0 n 3 hold register hold tmrhold tmr n _hold tmr n _hold tmr n _hold 0xf0 n 4 counter register cntr tmrcntr tmr n _cntr tmr n _cntr tmr n _cntr 0xf0 n 5 control register ctrl tmrctrl tmr n _ctrl tmr n _ctrl tmr n _ctrl 0xf0 n 6 status and control register sctrl tmrscr tmr n _sctrl tmr n _scr tmr n _scr 0xf0 n 7 comparator load register 1 cmpld1 tmrcmpld1 tmr n _cmpld1 tmr n _cmpld1 tmr n _cmpld1 0xf0 n 8 comparator load register 2 cmpld2 tmrcmpld2 tmr n _cmpld2 tmr n _cmpld2 tmr n _cmpld2 0xf0 n 9 comparator status/control register csctrl tmrcomscr tmr n _csctrl tmr n _comscr tmr n _comscr 0xf0 n a
how to reach us: home page: www.freescale.com e-mail: support@freescale.com usa/europe or locations not listed: freescale semiconductor technical information center, ch370 1300 n. alma school road chandler, arizona 85224 +1-800-521-6274 or +1-480-768-2130 support@freescale.com europe, middle east, and africa: freescale halbleiter deutschland gmbh technical information center schatzbogen 7 81829 muenchen, germany +44 1296 380 456 (english) +46 8 52200080 (english) +49 89 92103 559 (german) +33 1 69 35 48 48 (french) support@freescale.com japan: freescale semiconductor japan ltd. headquarters arco tower 15f 1-8-1, shimo-meguro, meguro-ku, tokyo 153-0064, japan 0120 191014 or +81 3 5437 9125 support.japan@freescale.com asia/pacific: freescale semiconductor hong kong ltd. technical information center 2 dai king street tai po industrial estate tai po, n.t., hong kong +800 2666 8080 support.asia@freescale.com for literature requests only: freescale semiconductor literature distribution center p.o. box 5405 denver, colorado 80217 1-800-441-2447 or 303-675-2140 fax: 303-675-2150 ldcforfreescalesemiconductor@hibbertgroup.com freescale? and the freescale logo are trademarks of freescale semiconductor, inc. all other product or service names are the property of their respective owners. this product incorporates superflash? technology licensed from sst. ? freescale semiconductor, inc. 2005. all rights reserved. mc56f8013 rev. 2 4/2005 information in this document is provided solely to enable system and software implementers to use freescale semiconductor products. there are no express or implied copyright licenses granted hereunder to design or fabricate any integrated circuits or integrated circuits based on the information in this document. freescale semiconductor reserves the right to make changes without further notice to any products herein. freescale semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does freescale semiconductor assume any liability arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation consequential or incidental damages. ?typical? parameters that may be provided in freescale semiconductor data sheets and/or specifications can and do vary in different applications and actual performance may vary over time. all operating parameters, including ?typicals?, must be validated for each customer application by customer?s technical experts. freescale semiconductor does not convey any license under its patent rights nor the ri ghts of others. freescale semiconductor products are not designed, intended, or authorized for use as components in systems intended for surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the freescale semiconductor product could create a situation where personal injury or death may occur. should buyer purchase or use freescale semiconductor products for any such unintended or unauthorized application, buyer shall indemnify and hold freescale semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such claim alleges that freescale semiconductor was negligent regarding the design or manufacture of the part.


▲Up To Search▲   

 
Price & Availability of 56F801XBLUG

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X